Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: Reading Reg Exp

by JavaFan (Canon)
on Aug 12, 2010 at 08:42 UTC ( [id://854616]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Reading Reg Exp
in thread Reading Reg Exp

Both cases are talking about matching ASCII characters. The first mentioning ASCII, the second when it's discussing non-UTF8 matching.

But the explain of the regex cannot know whether UTF-8 matching is in effect or not, as that will depend on the encoding of the subject string.

Replies are listed 'Best First'.
Re^7: Reading Reg Exp
by kejohm (Hermit) on Aug 12, 2010 at 11:55 UTC
    But the explain of the regex cannot know whether UTF-8 matching is in effect or not, as that will depend on the encoding of the subject string

    Good point. Especially if you pass a pre-compiled regex instead of a string. I think for what the module is trying to do, the simplest usages would suffice for most cases.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-06-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.