Bruce,

There are two ways to use the interesting new pattern type.  The ?? operator 
starts a new string scanning environment to evaluate a pattern.

The unary = operator has been extended to accept a pattern argument, and 
matches it at the position within the current string scanning environment. So 
the answer to your question is yes ... for the =p operator.  The s??p operator 
resets the position to 1 to do its job, and restores the current scanning 
environment after it is finished.


Clint

________________________________
From: Bruce & Breeanna Rennie <bren...@dcsi.net.au>
Sent: Sunday, April 16, 2017 6:39:25 AM
To: Unicon group
Subject: [Unicon-group] Question regarding pattern matching

Good evening to all,

Just a simple question, which doesn't appear to be answered in UTR18.
Are &subject and &pos the basis on which pattern matching is done? Can
we set &pos to be at any valid position within the pattern?

regards

Bruce Rennie



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to