VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 5 months agoRegex flavorslemmy.worldimagemessage-square10fedilinkarrow-up118arrow-down11
arrow-up117arrow-down1imageRegex flavorslemmy.worldVegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 5 months agomessage-square10fedilink
minus-square☆ Yσɠƚԋσʂ ☆@lemmy.mllinkfedilinkarrow-up2·5 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();