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

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

  •  07-19-2008, 11:40 AM

    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: ,
View Complete Thread