Hello all,
I am struggling while trying to write a regex to capture the second and third occurrence of a pattern.
Here is my example:
The Following XML file for instance:
eth0 192.168.1.1/24 xx:xx:xx:xx:xx:x ok eth1 192.168.1.2/24 xx:xx:xx:xx:xx:x ok
I manage to catch the first `eth0` by doing:<(Name)>(?\D+\d+)(\1)>\n
But I can't manage to catch the `eth1` field...
Sorry if this is a dumb question... I am new to Regex...
I am using https://regex101.com/ to help me out, but I'm stuck..
Can someone help me on this one please?
Thanks!
↧