Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: regex quotes character class

by soonix (Canon)
on Jun 17, 2020 at 06:27 UTC ( #11118173=note: print w/replies, xml ) Need Help??


in reply to regex quotes character class

in perluniprops there is \p{QMark} and \p{Quotation_Mark}, and I assume they span the characters listed in https://en.wikipedia.org/wiki/Quotation_mark#Unicode_code_point_table

Replies are listed 'Best First'.
Re^2: regex quotes character class
by ikegami (Pope) on Jun 17, 2020 at 14:26 UTC

    \p{Quotation_Mark=Yes} and its alias \p{QMark=Yes}, which can be simplified to \p{Quotation_Mark} and \p{QMark}, do indeed track the similarly-named Unicode character property. Characters with this property include *most* of the the characters listed in the linked table and *some* of the characters listed by the OP.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11118173]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-02-24 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?