From: Ezra Zygmuntowicz Date: 2005-06-16T06:44:50+09:00 Subject: Regex help Hello list! Could someone help me do a little regex conversion? I've got a few perl compatible regexes from a php script I am trying to port to ruby but I need a little help. Here are the php functions: $buffer = preg_replace("#(? $0", $buffer); $buffer = preg_replace("#(?<=[\n ])([a-z0-9\-_.]+?)@([^,< \n\r]+)#i", "$0", $buffer); Can someone please help me get these into a format that ruby will like? I kow I will end up using gsub! to do the sub but these regexes don't parse correctly in ruby and I am not sure of the rules I need to follow to make ruby happy. Help is much appreciated. Thanks- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster 509-577-7732 ezra@yakima-herald.com