VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 months agoRegex flavorslemmy.worldimagemessage-square9fedilinkarrow-up110arrow-down10
arrow-up110arrow-down1imageRegex flavorslemmy.worldVegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 4 months agomessage-square9fedilink
minus-square☆ Yσɠƚԋσʂ ☆@lemmy.mllinkfedilinkarrow-up1·4 months agoI really like this approach for doing non trivial regex https://github.com/VerbalExpressions const tester = VerEx() .startOfLine() .then('http') .maybe('s') .then('://') .maybe('www.') .anythingBut(' ') .endOfLine();
I really like this approach for doing non trivial regex https://github.com/VerbalExpressions
const tester = VerEx() .startOfLine() .then('http') .maybe('s') .then('://') .maybe('www.') .anythingBut(' ') .endOfLine();