G
Guest
Can anybody give me a really simple explanation or example of how the
behaviour of the regular expression grouping construct (?<group1-group2>***)
works?
I've read in the documentation that it 'replaces the previously defined
definition of one group with another' ... but I couldn't understand how the
whole of the description related to how it works in the real world.
Apparently it's used for knowing how many nesting levels deep of brackets a
match occurs in, which I can imagine would be really useful in some
scenarios, but I'm lost as to how to use it.
Anybody know?
behaviour of the regular expression grouping construct (?<group1-group2>***)
works?
I've read in the documentation that it 'replaces the previously defined
definition of one group with another' ... but I couldn't understand how the
whole of the description related to how it works in the real world.
Apparently it's used for knowing how many nesting levels deep of brackets a
match occurs in, which I can imagine would be really useful in some
scenarios, but I'm lost as to how to use it.
Anybody know?