From: "Brajmohan S." Date: 2011-01-17T17:14:03+09:00 Subject: 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. -- Posted via http://www.ruby-forum.com/.