Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

CLIST & REXX :: RE: Reasonable way of checking wildcards using REXX

$
0
0
Author: sergeyken
Subject: REXXTOOLS
Posted: Thu Sep 15, 2016 7:42 pm (GMT 5.5)

BTW, if REXTOOLS is available in your environment then everything can be simplified with REXXTOOLS function(s), like this:
Code:
Examples:
1. say match( 'abc*', 'abcdef' ) /* '1' */
2. say match( 'abc*', 'abc' ) /* '1' */
3. say match( 'abc???', 'abcdef' ) /* '1' */
4. say match( 'abc???', 'abcd' ) /* '0' */
5. say match( '*xyz', 'xyz' ) /* '1' */
6. say match( '\*abc', 'abc' ) /* '0' */
7. say match( '\*abc', '*abc' ) /* '1' */ 

RTFM icon_exclaim.gif
_________________
Tyrannosaurus-REXX


Viewing all articles
Browse latest Browse all 9405

Trending Articles