[Info-vax] OpenVMS - DCL - Data entry filtering

John Reagan xyzzy1959 at gmail.com
Thu Mar 26 20:55:43 EDT 2015


On Thursday, March 26, 2015 at 7:03:55 PM UTC-4, hb wrote:
> On 03/26/2015 10:57 PM, Craig A. Berry wrote:
> > This while waiting for regular expression support, either via lexicals
> > or (preferably) integrated into the syntax of the language something
> > like this:
> 
> With 8.3 you get
> $ foo = "abc123"
> $ write sys$output f$match_wild(foo,"abc*")
> TRUE
> $ write sys$output f$match_wild(foo,"*c%2%")
> TRUE
> $
> 
> There is not much documention for this lexical only a "pattern" is 
> mentioned, From the examples it is very likely less powerful than 
> regular expression matching.

It calls the filename matching routine that is in the F11X facility.  DCL's SHOW SYMBOL calls the same routine.  SHOW LICENSE also.  I found other calls scattered around.  Same as STR$MATCH_WILD (both written by AndyG back in the Mesozoic era) in functionality but STR$MATCH_WILD uses descriptors.  Guy added the lexical back in 2005.



More information about the Info-vax mailing list