Advertisement
easternnl

Regex with escaped double quote within text to capture and d

Apr 15th, 2019
559
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. The following Regex:
  2.  
  3. "((?:\\"|[^"])*)"
  4.  
  5. Will match everything in between double quotes, and skip the escaped double quotes. Try your self at https://regex101.com/r/sbukHC/1
  6. <a
  7. id="link-cms-page-4-2"
  8. class="cms-page-link"
  9. href="http://server:8080\"/en/content/4-about-us"
  10. title="Learn more about \"erik\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement