Dren Dren - 11 months ago 44
Perl Question

capture alphanumeric string using regex

I have a file that contain any of the following strings


I would like to capture the strings except the 1st with the output like below using regex


So far I am only able to come up with the regex below but it work only to the last three strings



You can use this regex with optional delimiters to match your inputs:


RegEx Demo