Author: enrico-sorichetti
Subject: Reply to: Wildcard logic in COBOL
Posted: Tue Sep 06, 2016 7:59 pm (GMT 5.5)
if ...
* stands for 0 or more chars
? stands for one char
a combination ?* is legal ... it requests for at last one char
anyway unless You want to be pedantic
if the pattern analysis is done properly
any mix of * and ? should work...
_________________
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort![icon_cool.gif]()
Subject: Reply to: Wildcard logic in COBOL
Posted: Tue Sep 06, 2016 7:59 pm (GMT 5.5)
Quote: |
1. Wildcard Symbol * shouldn't occur continuously. 2. Wildcard symbols * and ? shouldn't occur contiuously. |
if ...
* stands for 0 or more chars
? stands for one char
a combination ?* is legal ... it requests for at last one char
anyway unless You want to be pedantic
if the pattern analysis is done properly
any mix of * and ? should work...
_________________
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
