I use it like this - or at least this works if the regex is all one one line.my $regex =' ^(\w*)?\s (\w*)?\s (\w*)?\s (?:([A-Z]*)\s)? (\d+)\* (?:([0-9+]+)[>])? ([0-9+]+)\s. (\d*) ';
$input_string=~m/$regex/;
In reply to how to write a multi-line regex by zerocred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |