Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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
Domain Nodelet?
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 cooling their heels in the Monastery: (3)
As of 2021-10-25 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?