Whether you’re a novice or a seasoned developer, Regular Expressions are notoriously tricky. It’s a bit like asking Rumpelstiltskin for help. Sure he can validate your form inputs - but you’ll need to hand over your firstborn child and make him a sandwich too. Next time, try VerbalExpressions.
```js /* Normal RegEx gobbledy gook: / /^(http)(s)?(:\/\/)(www.)?([^\ ])$/
/* VerbalExpressions statement: */ VerEx().startOfLine().then( “http” ).maybe( “s” ).then( “://” ).maybe( “www.” ).anythingBut( “ “ ).endOfLine() ```
Join the discussion