From: Gregg Yows Date: 2008-04-09T01:21:57+09:00 Subject: Ruby multiline regex problem Code: "
testPit something here Best" Pattern: .*?<\/td\s*> I'm trying to match this whole block and use it for further parsing. This started from an example in Brian Merick's book "Everyday Scripting..." that had to be modified because amazon has changed their presentation to tables instead of lists. Anyway, the regex works fine as a single-line. as soon as I introduce this: "
testPit something here Best" it fails. When I try this same expression with perl using the //s mode, it works. I understand Ruby uses //m (multi-line mode in nearly the same fashion causing newlines to be considered any character, so it should work, right? Can anyone tell me what I am doing wrong here? Why isn't "multiline" mode working? Thanks! -- Posted via http://www.ruby-forum.com/.