regex – EmEditor (Text Editor) https://www.emeditor.com Best Text Editor, Code Editor, CSV Editor, Large File Viewer for Windows (Free versions available) Tue, 25 Jul 2017 17:46:26 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 Select all results in find and replace window https://www.emeditor.com/forums/topic/select-all-results-in-find-and-replace-window/ Tue, 25 Jul 2017 17:46:26 +0000 https://www.emeditor.com/forums/topic/select-all-results-in-find-and-replace-window/ It would be great if i can somehow select all results of find all
in find and replace window

very often i want to replace something using regular expression
but sometimes its hard to wrote the find and replace regex
but it would be easier if
i could first find phrases using regular expression
then
selecting all found results
and then use find and replaces with “in selection” option checked

]]>
Delete duplicates in single column https://www.emeditor.com/forums/topic/delete-duplicates-in-single-column/ Fri, 14 Jul 2017 09:16:28 +0000 https://www.emeditor.com/forums/topic/delete-duplicates-in-single-column/ Lets say I have a tab delimited file like this:

test[TAB]some text here
test[TAB]other text here
test[TAB]some other text here
try[TAB]some text here
try[TAB]other text here
try out[TAB]some text here
try out[TAB]other text here

I would like to delete the duplicate cells of the first column and move the text of their second column to the first instance of the match with a delimiter, I.e. #, so that it looks like this:

test[TAB]some text here#other text here#some other text here
try[TAB]some text here#other text here
try out[TAB]some text here#other text here

The matched words must be case sensitive.

]]>
Searching limited groups of lines issue https://www.emeditor.com/forums/topic/searching-limited-groups-of-lines-issue/ Fri, 30 May 2014 21:55:37 +0000 http://www.emeditor.com/forums/topic/searching-limited-groups-of-lines-issue/ Hi there,
I can’t figure out what’s wrong with my search regex. In my file, I’d like to find groups of lines not containing tab characters (\t) at the start of line, but only whole groups containing between 2-5 line occurrences, not single lines.
So, in the below example, I’d like to get only two (2) search hits: “term01…term05”, and “term06…term07”.
I wouldn’t like my search hits to switch from “term01…term05” to “term02…term05”, then to “term03…term05”, and “term04…term05”, before jumping to “term06…term07”. What am I doing wrong? I thought I understood the lookahead pattern system.
Any suggestions would be appreciated, thank you.

My regex (dot not matching new line character, ee v14.4.4):
“^(?:[^\r\n\t].+(?:\r\n)){1,4}[^\r\n\t].*$”

SAMPLE OF THE SEARCED TEXT:
term01
term02
term03
term04
term05
\t definition01
\t definition02
\t definition03
term06
term07
\t definition04
\t definition05
term08
\t definition06

]]>