|
|
|
|
|
by qaq
3022 days ago
|
|
for those who find regex not very readable:
https://github.com/VerbalExpressions
// Create an example of how to test for correctly formed URLs
var tester = VerEx()
.startOfLine()
.then('http')
.maybe('s')
.then('://')
.maybe('www.')
.anythingBut(' ')
.endOfLine(); |
|