Thread View: bit.listserv.rexxlist
1 messages
1 total messages
Started by Greg T. Barba
Fri, 12 Jun 1992 21:42
Scan/Match exec
Author: Greg T. Barba
Date: Fri, 12 Jun 1992 21:42
Date: Fri, 12 Jun 1992 21:42
19 lines
1403 bytes
1403 bytes
My apologies if this has been discussed before, but I have not been
able to find anything in the archives.
Has anyone written an exec/subroutine that does pattern matching
on a string? I would like to use asterisks to represent any char
and a question mark to represent a single char.
For example:
match("What a nice feature","feature") --> 1
match("What a nice feature","nic*") --> 1
match("What a nice feature","f*tur*") --> 1
match("What a nice feature","w?at") --> 0
match("What a nice feature","W?at") --> 1
How bout
match("Now you're dreaming","'bob*' | 'f*' | 'dream*g'") --> 1
match("Now you're dreaming","('B?B' & 'TED') | ('DREAM*' & '*ow')") --> 1
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads