Basically, we need to replace ? with ' , but ONLY when its NOT got a space *before* or *after* it. It needs to allow for foreign charachters too (as this is a french site :))my $test_string = "foo l?est sé?jou ? foo "; $test_string =~ s/([a-zA-Z0-9]+)\?([a-zA-Z0-9]+)/$1'$2/sig;
In reply to Simple regex question by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |