
Hi Aga, If you have a template similar with "selectBeforeNumber" but you test the current character not to be a number and instead of returning the value on otherwise you call the "selectBeforeNumber" template passing the value as parameter then you have a solution for that. Best Regards, George ----- Original Message ----- From: "Aga Shirazi" <ashirazi@buffalo.edu> To: "George Cristian Bina" <george@oxygenxml.com>; <oxygen-user@oxygenxml.com> Sent: Friday, November 14, 2003 8:33 PM Subject: curiosity sake
George,
Just for curiosity sake,
In problem #2, we know that there are digits at the end to be removed, but what if digits and alphabets are mixed? Ex:
XML FILE <INFO>some book 19 some discription</INFO> <INFO>another book 2000 some description again</INFO> <INFO>the last book 90 text</INFO>
Now, we need just the text before the number. i.e. "some book" or "another book".
Thanks Aga Shirazi