EmEditor (text editor) Forum Index
   Regular Expressions
     "H_r|H" "H|H_r" different?
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 10/20/2012 11:16 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2397
Re: "H_r|H" "H|H_r" different?
Hello LTT,

This is just because "H" is a part of "H_r", and so "H" is matched before "H_r" is matched. This is the expected behavior.


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

LTT
Posted on: 10/20/2012 5:15 am
Just can't stay away
Joined: 10/11/2006
From:
Posts: 84
"H_r|H" "H|H_r" different?
Options selected:
Match Case
Use Regular Expression
Search Only Word

"H_r|H" can match "H_r" and "H".
But "H|H_r" can only match "H" (not in "H_r").

How to understand this?
Threaded | Oldest First Previous Topic | Next Topic | Top


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