EmEditor (text editor) Forum Index Regular Expressions
"H_r|H" "H|H_r" different? | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| 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? |
| Yutaka | Posted on: 10/20/2012 11:16 am |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2398 |
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.
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




