Comparing a string word by word

I am facing a problem where we have to compare two strings. I applied
the regex to match it and it works fine for the string which dont have
space in between. However in case, the matching string containg space,
then its failing.

Please let me know how to tackle this.

Thanks in advance.

On Mon, Jan 17, 2011 at 9:14 AM, Brajmohan S. [email protected]
wrote:

I am facing a problem where we have to compare two strings. I applied
the regex to match it and it works fine for the string which dont have
space in between. However in case, the matching string containg space,
then its failing.

Please let me know how to tackle this.

You could either extract words and compare corresponding arrays or you
build your regexp to account for different whitespace sequences. What
exactly are you attempting?

Cheers

robert

Could you send your string and regexp?

Abinoam Jr.