Vadim Gritsenko
Thu, 04 Dec 2003 06:34:27 -0800
Hello all,
Euh, ping! (Am I on, or is it really a low traffic list? :)
...I was working on an interesting project and found the need to extend the Regexp functionality by defining a meta-structure that combines regexps together... and was wondering if there would be interest to include such an expansion.
The need is to be able to extract matched values from an input text, for example, say an input is:
key is = thefirstkey, value is = thefirstvalue
then we would like to say that (actually, this is the format that I have implemented):
(^key is = ){param1=([:alphanum:]*)}(, value is = ){value1=([:alphanum:]*)}($)
would match it and return a map with ["param1"->"thefirstkey",
"param2"->"thesecondkey"]
Have I been wasting time implementing something that already exists?
Simple regexp: ^key is = ([:alphanum:]*), value is = ([:alphanum:]*)$
If this is a good idea, how do we go about submitting it for general
code review and the sort? (I'm going through the docs about this that
are on the site)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]