I'm sure there is a better Regex to handle this, but this works in this example. Note that this assumes the name is either one or two words. Someone more proficient in Regex can most likely post an expression that starts at the beginning of the input line and grabs text up to but not including the semicolon/delimiter.
inputLine = "Reggie;12345;Phillipines" inputLine[/w*/] # gets name as one word only inputLine[/\w* *\w*/] # gets name as two words only (separated by space) Hope this helps, Nathan Christie --------------------------------------------------------------------- Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6488&messageID=18584#18584 _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general