I'm trying to figure out how to make it look to the user:
FIND:
(*1),(" "),(",")(*1)(*1)
* = wildcard, 1 = number in list of specs for the wildcard
specs:
(*1) = (>= 0 AND <=9) OR (>=a AND <=f)
*1 would find hex digits only
any other ideas?
Rich
Stick with a notation lots of people know already, like regular expressions.
You could start with a simple version described by Kernighan & Pike in the
April 1999 issue of Dr Dobb's journal. It's not a full regular expression
matcher, but it's very compact code and does handle the 'match any
character' and 'match previous zero or more times' meta-characters.
- Anton Treuenfels
How about a cpp for the //e (or any other tidy macrogenerator)?
Or grep?
-michael
NadaNet networking for Apple II computers!
Home page: http://members.aol.com/MJMahon/
"The wastebasket is our most important design
tool--and it's seriously underused."