Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: YAML::XS perl/regexp (?u:(?u:

by ikegami (Patriarch)
on Dec 20, 2017 at 15:57 UTC ( [id://1205916]=note: print w/replies, xml ) Need Help??


in reply to Re^4: YAML::XS perl/regexp (?u:(?u:
in thread YAML::XS perl/regexp (?u:(?u:

I don't know what you mean by "check with regexp_pattern(), if there are any flags (ignoring u)". Do you mean "check if the results of ( regexp_pattern(qr/$pat/) )[1] contains anything but u"? It never will (unless you use use re "/...", which would be bad here).

Replies are listed 'Best First'.
Re^6: YAML::XS perl/regexp (?u:(?u:
by tinita (Parson) on Dec 20, 2017 at 23:05 UTC
    I mean, when Dump()ing a regex, not when Load()ing it.

      oic what you mean. When serializing, if there are no flags, use the current syntax, but exclude the wrapping (?:...).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2026-05-13 00:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.