Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Capture double quotes in words

Last post 10-15-2008, 12:22 PM by prometheuzz. 3 replies.
Sort Posts: Previous Next
  •  10-10-2008, 11:09 AM 47075

    Capture double quotes in words

    I am trying to capture double quotes in words like this: "This is an example" but not like this <img src="imagename"/>

    I would appreciate any help

     

    Thanks

  •  10-10-2008, 11:32 AM 47078 in reply to 47075

    Re: Capture double quotes in words

    Given the examples in your original post, the following will do the job:

    "[^"<>]*"(?![^"<>]+>)

  •  10-15-2008, 11:39 AM 47234 in reply to 47078

    Re: Capture double quotes in words

    That didn't work either, it captured other stuff in tags, but I did it manually.

    Thanks you're always helpful

  •  10-15-2008, 12:22 PM 47235 in reply to 47234

    Re: Capture double quotes in words

    Jagarm:

    That didn't work either, it captured other stuff in tags, but I did it manually.

    Then you should have posted some more examples of what input you were processing. The proposed solution worked for all the examples you posted in your original post.

    Jagarm:

    Thanks you're always helpful

    You're welcome.

View as RSS news feed in XML