@[email protected] to Programmer [email protected]English • 1 year agoRegex flavorslemmy.worldimagemessage-square32fedilinkarrow-up1412
arrow-up1412imageRegex flavorslemmy.world@[email protected] to Programmer [email protected]English • 1 year agomessage-square32fedilink
minus-square@[email protected]OPlinkfedilink24•1 year 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!