regex multiline mode
Posted: Mon Jan 03, 2011 3:13 am
Hi,
Is multiline mode supported in regex? I tried (?s) and (?m) before the regex, but did not get the expected result.
What I want to do is search a logfile for a text like this:
UPDATE MDS_KAART
SET NAAM = 'non-seminoma testis',
where the text after NAAM is of a specific length. Lines are separated by 0x0d 0x0a (Windows like).
My regex was: (?m)UPDATE MDS_KAART\nSET
Is multiline mode supported in regex? I tried (?s) and (?m) before the regex, but did not get the expected result.
What I want to do is search a logfile for a text like this:
UPDATE MDS_KAART
SET NAAM = 'non-seminoma testis',
where the text after NAAM is of a specific length. Lines are separated by 0x0d 0x0a (Windows like).
My regex was: (?m)UPDATE MDS_KAART\nSET