We don't bite newbies here... much | |
PerlMonks |
Finding common substringsby ktsirig (Sexton) |
on Sep 20, 2006 at 22:04 UTC ( [id://574016]=perlquestion: print w/replies, xml ) | Need Help?? |
ktsirig has asked for the wisdom of the Perl Monks concerning the following question:
Hello fellow monks, I was wondering if there is a way to do the following. Say you have 2 strings, like: You can notice that these 2 strings have PF01389 in common. So, I wanted to knows if there is a way of checking for values inside one string that are equal with values in the other. I tried using: but it doesn't work, because it searches for the whole $a or $b and not parts of them. Any suggestions? 2006-09-21 Retitled by GrandFather, as per Monastery guidelines
Back to
Seekers of Perl Wisdom
|
|