in reply to Match and Extract String with Regex
Are you asking to find the Longest Common Subsequence (LCS) of the strings? Searching for that should reveal nodes on the topic.
Or if all you want to do is check if $str1 is in $str2, then index will do the trick.
if (index($str2, $str1) >= 0) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Match and Extract String with Regex
by erroneousBollock (Curate) on Nov 17, 2007 at 09:25 UTC | |
by lima1 (Curate) on Nov 17, 2007 at 16:58 UTC | |
by erroneousBollock (Curate) on Nov 18, 2007 at 04:10 UTC |