Greetings Monks! Here's my question. I'm writing a regex within a IF condition and this is how it goes..
foreach $arr(@arr){ if (($arr =~ /(\w*)(abc)(\d{5})/) && ($arr =~ / (\w*)(def)(\d{8})/)){
From the regex above, I'm looking to capture the value of the 8 digit number found in the second regex. How do I go about this? I must admit that both regexes are part of the same string (which is really long).
In reply to Question on Regex grouping by ajguitarmaniac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |