VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · il y a 4 moisRegex flavorslemmy.worldimagemessage-square33fedilinkarrow-up1418arrow-down118
arrow-up1400arrow-down1imageRegex flavorslemmy.worldVegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · il y a 4 moismessage-square33fedilink
minus-squareVegOwOtenks@lemmy.worldOPlinkfedilinkarrow-up25·il y a 4 moisYou 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!