http://http://www.perl.com/doc/manual/html/pod/perlop.html#item_qr for more detailmy $regex =qr{ ^(\w*)?\s #A comment (\w*)?\s # an other (\w*)?\s # and again (?:([A-Z]*)\s)? # all the way through (\d+)\* # so that the homicidal psychopath (?:([0-9+]+)[>])? # who knows where you live ([0-9+]+)\s. # and will have to maintain this code (\d*) # will think well of you }x; $input=~$regex
In reply to Re: how to write a multi-line regex
by Utilitarian
in thread how to write a multi-line regex
by zerocred
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |