After the match is found, how do you pull the first part of the text out of the string? Thanks for helping a NooB.foreach $Y(@dependantFiles ) { foreach $X(@namedFiles) { if( $X =~ m/$Y/gi) { print "Found it\n" last; } } next; }
In reply to regex expression help by JFarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |