EmEditor (text editor) Forum Index
   Regular Expressions
     Match some text followed by either newline or EOF ?
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Deipotent
Posted on: 7/13/2011 4:08 pm
Just can't stay away
Joined: 2/15/2008
From:
Posts: 121
Match some text followed by either newline or EOF ?
I know you can use \n to match a newline, but how do you match either newline OR EOF ?

I want it to match all lines, including the last line, which have some specific text followed by either newline or EOF. For example, I can use "sometext\n", but this won't match on the last line.
Flat Previous Topic | Next Topic


Subject Poster Date
 » Match some text followed by either newline or EOF ? Deipotent 7/13/2011 4:08 pm
     Re: Match some text followed by either newline or EOF ? CrashNBurn 7/13/2011 5:23 pm
       Re: Match some text followed by either newline or EOF ? Deipotent 7/13/2011 6:37 pm
         Re: Match some text followed by either newline or EOF ? CrashNBurn 7/13/2011 6:51 pm
           Re: Match some text followed by either newline or EOF ? Deipotent 7/13/2011 6:58 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文