EmEditor (text editor) Forum Index
   Regular Expressions
     Find whole word starting a line
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 4/26/2011 8:09 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2397
Re: Find whole word starting a line
Hello spiros,

If you want to find the first and second word at a line, you can use the following regular expression:

Find:
^(\w+?)\s+?(\w+)


\1 and \2 represents the first and second word respectively. For instance, you can replace with capital letters:

Replace with:
\U\1 \2


Thanks!



----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

spiros
Posted on: 4/22/2011 9:04 am
Just popping in
Joined: 1/22/2010
From:
Posts: 7
Find whole word starting a line
What would be the regex for this? I.e. I would like to find the word What in the 1st line, the word Where in the 2nd, etc:

What would be the regex for this
Where would be the regex for this


----------------
Greek translation

Threaded | Oldest First Previous Topic | Next Topic | Top


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