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 (?:...).