From: calvin8@... (Andi Scharfstein) Date: 2003-06-11T00:25:25+09:00 Subject: Re: OT: Regexp question Hi, > file.gets=~/(.+?)( \(.+)?$/ > How can I make it easier? I would try something along the lines of /^(\w+)[\s|\n]/, although that might not be the best solution, either. Please note that I did not test this regex. > And please show me how I can easily substitute a single quotation mark by a > backslash and single qotation Have you tried \\\' ? -- Bye: Andi S. mailto:nullpointer@myrealbox.com