Hi guys,
I’m looking for a regex solution for this:
I would like to check if the contents of a $ matches part of the contents of another $. If so proceed with the next action.
Example:
$one = “regular expressions”;
$two = “I would like to know more about regular expressions”;
match is true
Is the next sort of matching possible (contents of $one matches part of $two with characters between the matching parts in $two)?
$one = “reg ex”;
$two = “I would like to know more about regular expressions”;
match is true
Anyhelp would be great!
Raoul
[sig][/sig]
I’m looking for a regex solution for this:
I would like to check if the contents of a $ matches part of the contents of another $. If so proceed with the next action.
Example:
$one = “regular expressions”;
$two = “I would like to know more about regular expressions”;
match is true
Is the next sort of matching possible (contents of $one matches part of $two with characters between the matching parts in $two)?
$one = “reg ex”;
$two = “I would like to know more about regular expressions”;
match is true
Anyhelp would be great!
Raoul
[sig][/sig]