Regex: newline?

Discussion Forums discussion Regex: newline?

This topic contains 0 voices and has 6 replies.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
July 7, 2006 at 3:33 pm #81

iRob
Member

Is there a regex syntax for newline or carriage return? I can’t find one in the help or in the scintilla sourceforge pages.

Thanks!

July 7, 2006 at 6:18 pm #15019

Bjoern
Member

It is n if I am not mistaken. You might need to use rn for windows style line breaks though.

July 7, 2006 at 7:18 pm #15020

iRob
Member

Yeah, I tried n and r separately. Now I’ve tried them together as you suggest, but none of them are working.

I even tried entering a few of my own line breaks and trying a search. Nothing. And of course the regex option is turned on in search.

July 8, 2006 at 11:57 am #15021

simon
Key Master

Hi, you want use backslash expressions rather than regular expressions. The RegEx searches currently operate on a line-by-line basis only.

January 12, 2007 at 10:35 am #15022

paulfeakins
Member

Ah ha!

PN2 is absolutely awesome, but this is really annoying – I’ve wasted nearly 30 mins on this.

It would be so cool if you could use backslash expressions and RegExes together.

Cheers,

Paul.

November 26, 2007 at 9:40 pm #15023

jumpfroggy
Member

Simon,

What would be needed to fix this? PCRE?

November 27, 2007 at 9:25 am #15024

simon
Key Master

Yes, PCRE or some other equivalent multi-line regular expressions library.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.