Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 602
  • Last Modified:

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
0
jacobJL
Asked:
jacobJL
  • 4
  • 4
1 Solution
 
NVITCommented:
Find what: (<OrderDocumentCode Code=\")([0-9].+)(\" />)
Replace with: \1\3
0
 
jacobJLAuthor Commented:
Thanks for the response. I am getting cannot find regular expression. Please see screen shot
error
0
 
NVITCommented:
Move your cursor to the top of the file. Then try again
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
jacobJLAuthor Commented:
still didn't work.
0
 
jacobJLAuthor Commented:
here is a sample file if that helps
0
 
NVITCommented:
Configure, Preferences, Editor. Check "Use POSIX..."
0
 
Dan CraciunIT ConsultantCommented:
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
0
 
jacobJLAuthor Commented:
This solution combined with Configure, Preferences, Editor. Check "Use POSIX..." worked. Thank you so much.
0
 
NVITCommented:
@Dan: Thanks for that. I tend to forget the simple things. *sigh*
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now