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) { ... }
In reply to Re: Match and Extract String with Regex
by ikegami
in thread Match and Extract String with Regex
by monkfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |