VegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 年前Regex flavorslemmy.worldimagemessage-square20linkfedilinkarrow-up1105arrow-down15
arrow-up1100arrow-down1imageRegex flavorslemmy.worldVegOwOtenks@lemmy.world to Programmer Humor@lemmy.mlEnglish · 1 年前message-square20linkfedilink
minus-squareVegOwOtenks@lemmy.worldOPlinkfedilinkarrow-up9·1 年前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.
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.