G
gsterndale
In the example below I'd like to match 'what is' and 'foo bar'. Any
ideas?
'what is foo bar' =~ /(.*)\s*(foo bar|bar)/ => 0
$1 => "what is foo "
$2 => "bar"
Thanks!
ideas?
'what is foo bar' =~ /(.*)\s*(foo bar|bar)/ => 0
$1 => "what is foo "
$2 => "bar"
Thanks!