Java Regex Capture Text Between """ or ''' -


I have a document that I am attempting to parse with Java Regex and in this text quote either " "" Or "'then you have:

" "" Blow, you are not very good! "" Or:

"Blow, this 1 is not a great example '' '

I ["" "| |' ''] ([\ P {Alnum} | \ p {empty}] +) [\" "" | ' '']

Concepts: The text will start and end with "" "or" '' in the text, the numbers, letters, spaces and punctuation may be included in the body of the text Try the pattern: ("" "" Hello "," World! "" No Text "" "" Leerem ipsum '' '' '' '' ' '' '' '' Some extra text '' 'Single quote' '' '' Blow, this is not a great example 1 '' '

by matching it "Hello, World!" "

  • " lorem ipsum '' "dolor" "
  • '' single quote '' '
  • ' '' Blow, this 1 is not a great example '' '' Code>

    You might be more specific from . *? but I was not sure which characters are related to "punctuation marks." / P>

  • Comments