in reply to multiple options for pattern match help
my $regexp = qr/ (?: ( int | char | bool | long ) ) /x; if ($string =~ /\A $regexp \z/xms){ print $&, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: multiple options for pattern match help
by alexm (Chaplain) on Jan 08, 2008 at 23:20 UTC |