|Did you know ...||Search Documentation:|
:- use_module(library(pcre)).(can be autoloaded)
Throws an error if With uses a name that doesn't exist in the Pattern.
|Pattern||is the pattern text, optionally
followed by /Flags. Flags may include |
re_replace("(?<date> (?<year_I>(?:\\d\\d)?\\d\\d) - (?<month_I>\\d\\d) - (?<day_I>\\d\\d) )"/x, "$month-$day-$year", ISODate, AmericanDate)`
|With||is the replacement text. It may
reference captured substrings using |
for the set of options.
The options that are derived from flags take precedence over the
options in the Options list. In the case of conflicting
flags, the first one is used (e.g.,