Jess
(Jess)
1
Hello,
I want to extract the text between 2 tag in a HTML code file, see example below:
e.g.: Merchant [System fee recon]
What I want to extract is: Merchant [System fee recon]
I tried to use regex pattern: (?<=())(.*)(?=(, ))
But it did not work for me.
Plus, this is HTML code stored in a text file, not a page.
Can I use find children element as well ?
Please SAVE me.
Thank you for your help and answer in advance!
Jess
(Jess)
2
To add on:
This is HTML codes stored in a txt file because I convert the email body as HTML and write to txt file.
I am open to any other approaches and advice.
Thank you!
ppr
(Peter Preuss)
3
@Jess
Welcome to the forum
unfortunately we dont see the full sample. Just use the </>
format button from editor when posting code snippets
maybe following will help

1 Like
Jess
(Jess)
5
Thank you for your quick answer!
Your patterns works PERFECTLY, thanks ALOT!
ppr
(Peter Preuss)
6
system
(system)
Closed
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.