Hi Bert. Thank you for the kind words but --
(1) You should write a better version of CSV2LIST as it wasn't intended to be an industrial strength function, just a quick one off to illuminate one possible technique, not necessarilly the implementation, to a solution.
(2) You're killin' me. Why are you changing "
#[Xx]" to "
*[Xx]"?? That's not how I posted it but that's how you are using it and quoting it back.
The originally posted filter "
#[Xx]" will allow a number and upper|lowercase version of "x", e.g. "0x" thru "9x", and that's it --
(wcmatch "1X" "#[Xx]") => T
(wcmatch "2X" "#[Xx]") => T
(wcmatch "3X" "#[Xx]") => T
(wcmatch "9X" "#[Xx]") => T
(wcmatch "9X9" "#[Xx]") => nilIf "0x" would be considered invalid you could use --
(wcmatch text "[1-9][Xx]")The filter you posted "
*[Xx]" will allow anything (or nothing) prefixing upper|lowercase "x", everything from a simple "x" to "AllYourLispAreBelongToX" would pass such a filter.
(wcmatch "X" "*[Xx]") => T
(wcmatch "AllYourLispAreBelongToX" "*[Xx]") => TDoes this help? Am I completely missing your point? Do I need a coffee? Ok, I know the anwwer at least one of these: Medic!