(71B) Wildcard pattern matching, directory listing
|
04-17-2021, 03:42 AM
Post: #5
|
|||
|
|||
RE: (71B) Wildcard pattern matching, directory listing
(04-17-2021 01:55 AM)rprosperi Wrote: Seems to me that you could step through any real world file list just using CAT and [v] in less keystrokes than invoking that CALL MATCH... command line, lol. Yeah, the DIR sub is just one very simple example with questionable utility, it can have other more meaningful uses. Might be useful for reading and filtering lines out of a text file, for instance. I don't know that I'd attempt to make a whole regex engine in BASIC, but I might add some other features to this. The ability to match character classes as with the LIKE operator in SQL Server would be neat, e.g. '[0-9][0-9]*' to match strings beginning with a pair of numbers. Could just expand the class into a string that's tested with POS() or something. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(71B) Wildcard pattern matching, directory listing - Dave Britten - 04-16-2021, 02:49 PM
RE: (71B) Wildcard pattern matching, directory listing - robve - 04-16-2021, 07:35 PM
RE: (71B) Wildcard pattern matching, directory listing - Dave Britten - 04-16-2021, 10:14 PM
RE: (71B) Wildcard pattern matching, directory listing - rprosperi - 04-17-2021, 01:55 AM
RE: (71B) Wildcard pattern matching, directory listing - Dave Britten - 04-17-2021 03:42 AM
|
User(s) browsing this thread: 1 Guest(s)