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

multiple string with start and end of (") which also can contain (\")

Last post 07-23-2008, 12:11 PM by ddrudik. 1 replies.
Sort Posts: Previous Next
  •  07-19-2008, 11:40 AM 44333

    multiple string with start and end of (") which also can contain (\")

    Here is a string that I wan to find

    "some string some other one blah bla \"hello world \" "

    also should match
    "some string some other one
    blah bla \"hello world \" "

    also
    ""

    in conclusion I wantto detect all string which can be multiple lines also have

    \"

    inside of that string.

    I tried many combinations of regular rules. but could not achieve to build this rule up.

     

    any help appricated.

    thanks.

     

     

    okay I built it up : 

    (?s)"(\\"|[^"])*"

    Filed under: ,
  •  07-23-2008, 12:11 PM 44492 in reply to 44333

    Re: multiple string with start and end of (") which also can contain (\")

    The issue likely is that inside your code a \" inside a string quoted with " appears to the regex operation as just a ".

    If this is in code show the code.


View as RSS news feed in XML