On Thu, 13 Mar 2003, Arjen Poutsma wrote: > I've already created such a regex task, which sets properties based on named Groups > (<?name>). > For example, for the regular expression ^(?<name>\w+):(?<value>\w+), you'd say: > > <regex pattern="^(?<name>\w+):(?<value>\w+)" input="Section1:119900"/> > <echo message="${name}"/> > <echo message="${value}"/> > > results in: > > [echo] Section1 > [echo] 119900 > > Note that you have to use the XML entity < in order to specify a <. > > I could send it to the list, or place it somewhere else, if there is interest.
I haven't followed the discussion about substring too closely but Arjen's <regex> task looks like a good place to start. How about changing the 'input' attribute to 'fromstring'. This way it leaves the door open for the task so that input could come from a file, fileset or other sources. ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers