in reply to Regex 'If Not Match'
And then there is also another way unless you don't like it, you may use:if( not ( $reference =~ m/38[0-9]{8}[A-Z]{3}/ )) { $reference = ""; }
$reference = "" unless $reference =~ m/38[0-9]{8}[A-Z]{3}/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex 'If Not Match'
by kwaping (Priest) on Sep 30, 2005 at 15:00 UTC |