Lynx
(Lnx)
March 28, 2022, 4:36pm
1
Good morning friends;
One query please, I tried the following regex to capture the word after “ENVIO”, but I only want the files that have that exact word at the beginning
(?<=ENVIO)(.*?)(?=\d.)
ENVIO HOME ATT 28012022.xlsx
MEDIOS ENVIO PRONVINCIA 01-01
TOTAL ENVIOS 28012022
expected result:
ENVIO HOME ATT 28012022.xlsx
Lynx:
(?<=ENVIO)(.*?)(?=\d.)
Hi @Lynx ,
Is this what you were looking for?
(?<=^ENVIO)(.*?)(?=\d.)
Kind Regards,
Ashwin A.K
1 Like
ppr
(Peter Preuss)
March 28, 2022, 4:41pm
3
we do understand that you are intrerested on filenames. So we assumend that on the end we can rely on the logic of file extension
ENVIO.*?\.\w+$
1 Like
Lynx
(Lnx)
March 28, 2022, 4:45pm
4
ashwin.ashok:
(?<=^ENVIO)(.*?)(?=\d.)
I was my mistake, I put the expected result wrong, it was just the core text “HOME ATT”
1 Like
ppr
(Peter Preuss)
March 28, 2022, 4:46pm
5
then you are served with the pattern from @ashwin.ashok
Lynx
(Lnx)
March 28, 2022, 4:47pm
6
Yes, Thank you very much to all
system
(system)
Closed
March 31, 2022, 4:48pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.