VegOwOtenks to Programmer Humor@lemmy.mlEnglish · 9 months agoRegex flavorsimagemessage-square28fedilinkarrow-up1414arrow-down118
arrow-up1396arrow-down1imageRegex flavorsVegOwOtenks to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square28fedilink
minus-squareVegOwOtenksOPlinkfedilinkarrow-up24·9 months agoYou can use backreferences \1 \2 etc. but you can also give them names explicitly. it looks like this: (?<name>inner-regex) Some flavors support it, kotlins doesn’t apparently.
You can use backreferences
\1 \2
etc. but you can also give them names explicitly.it looks like this:
(?<name>inner-regex)
Some flavors support it, kotlins doesn’t apparently.
TIL thanks!