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

Flat Previous Topic | Next Topic
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/

Flat Previous Topic | Next Topic


Subject Poster Date
   Find whole word starting a line spiros 4/22/2011 9:04 am
   » Re: Find whole word starting a line Yutaka 4/26/2011 8:09 am

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