I know that in regex, there is \s
to match all whitepsaces (space, tabs ...)
, \d
for any number, etc.
Is there the same shortcut to match all different quotation marks: ' " “ ” ‘ ’ „ ” « »
?
I can write my own regex, but I will probably miss some quotation marks from other languages, so I like to have a generic way to match all the quotation marks.
But may be they are considered as different characters so that it is impossible?
There is no such short-cut, in Java ... or (AFAIK) in any other dialect of regexes.
Unfortunately, there is no Unicode character class that consists of all "quotation" characters.
And there is no simple / guaranteed heuristic based on character names either.