in reply to Re^3: YAML::XS perl/regexp (?u:(?u:
in thread YAML::XS perl/regexp (?u:(?u:
Another possibility would be to continue just using a string. Check with regexp_pattern(), if there are any flags (ignoring u), just store the stringified regex, otherwise store the pattern itself.
This would still lead to unnecessary (?:...) but it wouldn't grow in roundtrips.
Have been looking into universal.c how regexp_pattern() is implemented. At the moment it's too much magic for me to understand.
Have been looking into universal.c how regexp_pattern() is implemented. At the moment it's too much magic for me to understand.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: YAML::XS perl/regexp (?u:(?u:
by ikegami (Pope) on Dec 20, 2017 at 15:57 UTC | |
by tinita (Parson) on Dec 20, 2017 at 23:05 UTC | |
by ikegami (Pope) on Dec 21, 2017 at 21:55 UTC |
In Section
Seekers of Perl Wisdom