if ( $string =~ m/(foobar)/ ) { $match = $1; } else { $match = "chiapet"; } [download]
In reply to Re: Regex question by Happy-the-monk in thread Regex question by carric