C
Clint Pidlubny
Hello,
What is the best approach to searching a string for another string?
For instance, I have:
url1 =3D 'http://www.url.com'
url2 =3D 'http://www.url.com/page'
If part of url1 is in url2, like above, I'd like to declare it a
match. I'm sure this happens using a regular expression, but my
experience is limited with them.
The other problem is that I'm not going to be looking for just one
url1, but I have an entire database table full of those to compare to
an entire database table of url2.
Any thoughts on approaching this problem are appreciated.
Thanks
Clint
What is the best approach to searching a string for another string?
For instance, I have:
url1 =3D 'http://www.url.com'
url2 =3D 'http://www.url.com/page'
If part of url1 is in url2, like above, I'd like to declare it a
match. I'm sure this happens using a regular expression, but my
experience is limited with them.
The other problem is that I'm not going to be looking for just one
url1, but I have an entire database table full of those to compare to
an entire database table of url2.
Any thoughts on approaching this problem are appreciated.
Thanks
Clint