Hi,
scan substing is a completely new feature which will be available in
the next release. You can try it if you compile pcre2 from the github
repository. I hope you will like it!
Scan substring is an assertion, it should behave like any other
assertions such as (?=...) . That means it matches to an empty string,
(*ACCEPT) accepts it, etc. Regardless, you can add quantifiers, a {6}
will repeat it 6 times. The ? can also be useful, but * is practically
a ?. Local options are limited to brackets. For example, in the
/()(*scs:(1).(?s).)./ pattern, only the second dot matches to all
characters (including newline).
Regards,
Zoltan