Can someone also check to see if this regex could be made better? It works but it seems to collect more than expected.
This matches more than what inside the quotes. It seems to match the " itself and the > that follows it in the code. Is there a better way to collect anything BETWEEN these two " "'s?if($line =~ /code="(.*)"/i) { my $collected = $1; };
In reply to Removing certain non-word characters by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |