[Info-vax] DCL and scripting

Jairo Alves jairo.ptbr at gmail.com
Tue Dec 11 15:11:06 EST 2018


> 
> F$REGEX_MATCH would not be that difficult.
> 
> Arne

Suggestion:

 F$REGEX(input_string, regex_query, output_rule, modifiers)

For example:

$ str = "11-DEC-2018 17:24"
$ str = F$REGEX(str, "(\d{2})-(\w+)-(\d{4})", -
                "$3_$2_$1", "UNGREEDY,CASE_INSENSITIVE")  

$ wr sys$output str
"2018_DEC_11"


 



More information about the Info-vax mailing list