Drive Letter:
Code: Select all
Q,Z
Code: Select all
"Q:\Folder\Subfolder"
"Z:\Folder\Subfolder"
Code: Select all
Q,Z
Code: Select all
"Q:\Folder\Subfolder"
"Z:\Folder\Subfolder"
You probably won't need a Regex for this.Debugger wrote:a folder/subfolder is just a sample name, but the name contains Russian letters and any other names!
Q:\ | Z:\
folder:Q:\ | folder:Z:\
Code: Select all
startwith:"AB "
This is not a regular expression!!!froggie wrote:match path not checkedCode: Select all
startwith:"AB "
Code: Select all
:\\AB
Code: Select all
[XZ]:\\AB
void wrote:With regex enabled, please try searching for:
^"[^"]*?","Q:\\AB Rysunki ALL!!
^ = start of line
" = match a single quote.
[^"]*? = lazily (matches on the first occurrence) match any character except ".
" = match a single quote.
, = match comma
" = match a single quote.
Put any text you would like to match in the second column.
Note: This will only work if column one and two are double quoted.
Code: Select all
[Window Title]
EmEditor
[Main Instruction]
The regular expression contains an invalid character class name.
[Content]
^"[^]*?","[E-Z]:\\AB\s.+\\(\d+_\d+)"
[OK]
It does not work! Regex is invalid.
Emeditor: Info: Cannot find ^"[^]*?","Q:\\AB
I mainly referred to your statements:Debugger wrote:tuska - I do not know what you mean, Folder names are hundreds of different, not one, in your image there is no expected result showing the folder name and EXTRACT to a different text file. Regex is wrong. What you showed is completely wrong !!!!
Debugger wrote:This is too simple a regex that does not work in CSV files (cells). I use EmEditor.
I need a valid Regex, which is found path only in the second cell.
U:\AB.csv(17582306): "y_ddc1d451.jpg","Q:\AB Rysunki ALL!!\-32084290_146842073","117 KB","08-05-13 23:57:00"
search only green (2 cell)
Red - any combination of characters
and just wanted to express that I do not receive this error message in EmEditor and that with me a text is found, if IIt does not work! Regex is invalid.
Emeditor: Info: Cannot find ^"[^]*?","Q:\\AB
Code: Select all
"y_ddc1d451.jpg","Q:\AB Rysunki ALL!!
Code: Select all
!-------------------!---------------------------------------------!
! Column A ! Column B !
!-------------------!---------------------------------------------!
! "y_ddc1d451.jpg", ! "Q:\AB Rysunki ALL!!\-32084290_146842073", !
!-------------------!---------------------------------------------!
void wrote:Everything uses PCRE, I can't really help with Emeditor as I don't know what version of regex they are using. (Regex++?)
EmEditor F1 - Help, EmEditor How to: Regular Expression Syntax wrote:Regular Expression Syntax: EmEditor regular expression syntax is based on Perl regular expression syntax.
EmEditor Copyright Notice wrote: The regular expression routines used in EmEditor use Boost library Regex++ and Onigmo.
Copyright (C) Dr John Maddock
Copyright (C) K. Takata, based on Oniguruma Copyright (C) by K. Kosako.
In EmEditor the following can be selected in the menu "Tools" - "Customize ..." - "Search" by drop-down box:EmEditor Help - About wrote:Regex++: Copyright (C) by Dr John Maddock (Boost 1.66.0)
Onigmo: Copyright (C) K. Takata, based on Oniguruma Copyright (C) by K. Kosako (Version 6.1.3)
Code: Select all
:\AB (insert one space after: :\AB )
Code: Select all
\\AB Rysunki ALL!! finds \AB Rysunki ALL!!
[+Q?]:\\AB Rysunki ALL!! finds Q:\AB Rysunki ALL!! <------
.:\\AB Rysunki ALL!! finds Q:\AB Rysunki ALL!!, Z:\AB Rysunki ALL!!
.:\\AB Rysunki ALL!!\\ finds Q:\AB Rysunki ALL!!\
.:\\AB finds X:\AB Z:\AB Q:\AB
.:\\AB (.*)\\ finds Q:\AB Rysunki ALL!!\ … and ... Z:\AB Karaiby & Plaża-\
Open a very large CSV file 5.39 seconds
* 1.99 GB, 156,600,000 lines, random number data, Use Temporary Files option on (default), Windows 10 (64-bit), Core i7-8700K, 32GB RAM.