Link to home
Start Free TrialLog in
Avatar of Jacob L
Jacob LFlag for United States of America

asked on

textpad regex replace between 2 quotes

I am using textpad and need to delete everything within quotes like below.

this is the current code
<OrderDocumentCode Code="00000000" />

this is what i need it to look like.
<OrderDocumentCode Code="" />

There are other quotes in the document so it would need to include the tag OrderDocumentCode

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jacob L

ASKER

Thanks for the response. I am getting cannot find regular expression. Please see screen shot
User generated image
Move your cursor to the top of the file. Then try again
Avatar of Jacob L

ASKER

still didn't work.
Avatar of Jacob L

ASKER

here is a sample file if that helps
Configure, Preferences, Editor. Check "Use POSIX..."
Why not simply:
Find what: <OrderDocumentCode Code="\d*" />
Replace with: <OrderDocumentCode Code="" />

You're basically deleting something, so the groups are not really necessary.

HTH,
Dan
Avatar of Jacob L

ASKER

This solution combined with Configure, Preferences, Editor. Check "Use POSIX..." worked. Thank you so much.
@Dan: Thanks for that. I tend to forget the simple things. *sigh*