VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agoRegex flavorslemmy.worldimagemessage-square9linkfedilinkarrow-up114arrow-down11
arrow-up113arrow-down1imageRegex flavorslemmy.worldVegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agomessage-square9linkfedilink
minus-square☆ Yσɠƚԋσʂ ☆@lemmy.mllinkfedilinkarrow-up1·2 years 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();