my $output = "Error: Illegal option -- x"; print "\nTRUE\n" if $output =~ /The.*?command\stakes.*?arguments;\syou\sgave.* |Illegal\soption.* |.*?is\snot\sa\svalid\soption.*/ix
It does now. :)
Embedded newlines and spaces count unless you use the x.
In reply to Re: Alternation metacharacter across multiple lines in regex not working
by Your Mother
in thread Alternation metacharacter across multiple lines in regex not working
by perlpal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |