troubleshooting Question

Match all lines matching a string in Notepad++

Avatar of Shravan Vishwanathan
Shravan Vishwanathan asked on
* Notepad++XMLRegular Expressions
2 Comments1 Solution207 ViewsLast Modified:
I have a string which I need to find in all XML files. I am using notepad ++.

String:

<PARA APPLIC="ST2, LT5"><XREFEXT DATAREF="LRCS000005678" PARTTYPE="FIGURE" XIDTYPE="GRAPHIC"/></PARA>
I need to find all files which contain 'ST2' in PARA APPLIC and PARA element should be followed by XREFXT element with XIDTYPE="GRAPHIC"

Example:


<PARA APPLIC="XXX,"ST2","XXX"> followed by <XREFXT DATAREF="XXXXXXXXXXX" PARTTYPE="FIGURE" XIDTYPE="GRAPHIC"/></PARA>
'X' represents wild character.

ST2 can be anywhere places in the APPLIC example:

APPLIC="ABC, "ST2", "RT4"
APPLIC="ST2", "GHT", "HYT"
APPLIC="HYT", "ST2"
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros