EmEditor (text editor) Forum Index
   Regular Expressions
     \l, [a-z], and \u do not seem to work properly
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
vertcioffi
Posted on: 12/14/2008 10:01 am
Just popping in
Joined: 1/10/2007
From:
Posts: 4
\l, [a-z], and \u do not seem to work properly
When I search for a lower case or uppercase letter after a quote, I do not find what I expect with the following two regular expressions
"[a-z] or "\l

If the file contains the single line "Regular" and I use either of the above two regex, the find command will highlight "R, which it should not. Am I doing something wrong in the regex, or is this a bug in the regex engine?

Matthew
Yutaka
Posted on: 12/14/2008 11:30 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: \l, [a-z], and \u do not seem to work properly
Quote:

vertcioffi wrote:
When I search for a lower case or uppercase letter after a quote, I do not find what I expect with the following two regular expressions
"[a-z] or "\l

If the file contains the single line "Regular" and I use either of the above two regex, the find command will highlight "R, which it should not. Am I doing something wrong in the regex, or is this a bug in the regex engine?

Matthew


I guess you will have to check "Match Case" check box before you earch for [a-z] or \l.


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

vertcioffi
Posted on: 12/16/2008 7:26 am
Just popping in
Joined: 1/10/2007
From:
Posts: 4
Re: \l, [a-z], and \u do not seem to work properly
Thanks, checking off the match case works, along with use regular expression. I am used to working in a UNIX environment where case sensitivity is the norm. In UNIX, when I use regular expressions, I must use an option to make case insensitive.
Matthew
Threaded | Newest First Previous Topic | Next Topic | Top


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