Re: regex text out of a file

2007-07-20 Thread Dominique Devienne
On 7/20/07, Alex Egg <[EMAIL PROTECTED]> wrote: All I want to do is get the value of the 'src' attribute, how would a replaceregex help me? I'm sorry, but I don't have the time to give you the solution, only guide you as best I can... The pattern *captures* only the part of the line of inter

Re: regex text out of a file

2007-07-20 Thread Alex Egg
All I want to do is get the value of the 'src' attribute, how would a replaceregex help me? On 7/20/07, Dominique Devienne <[EMAIL PROTECTED]> wrote: > How can I get the src attribute values from this: > > > > > Using a , as the link I provided shows. --DD ---

Re: regex text out of a file

2007-07-20 Thread Dominique Devienne
How can I get the src attribute values from this: Using a , as the link I provided shows. --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: regex text out of a file

2007-07-20 Thread Alex Egg
This is what I have so far: ${includeTags} How can I get the src attribute values from this: On 7/19/07, Dominique Devienne <[EMAIL PROTECTED]> wrote: http://marc.info/?l=ant-user&m=113259283417972&w=2 I searched for loadfile at this mailing archive site. --DD On 7/19/07, Alex

Re: regex text out of a file

2007-07-19 Thread Dominique Devienne
http://marc.info/?l=ant-user&m=113259283417972&w=2 I searched for loadfile at this mailing archive site. --DD On 7/19/07, Alex Egg <[EMAIL PROTECTED]> wrote: I looked at file reader to open the file, but can you show me an example of the regex FileReader? On 7/19/07, Dominique Devienne <[EMAIL

Re: regex text out of a file

2007-07-19 Thread Alex Egg
I looked at file reader to open the file, but can you show me an example of the regex FileReader? On 7/19/07, Dominique Devienne <[EMAIL PROTECTED]> wrote: with a regex FilterReader can give you a property that contains only the scipt source files. You can then use the property in a includes

Re: regex text out of a file

2007-07-19 Thread Dominique Devienne
with a regex FilterReader can give you a property that contains only the scipt source files. You can then use the property in a includes attribute, providing the proper dir to look for the files. --DD On 7/19/07, Alex Egg <[EMAIL PROTECTED]> wrote: I need help with this task: I have an HTML fi

Re: regex text out of a file

2007-07-19 Thread Brian Agnew
If your HTML file is (or can be converted to - using HTMLTidy or similar) XHTML, then XMLTask may be of use: http://www.oopsconsultancy.com/software/xmltask/ Particularly the mechanism in the above. Brian Alex Egg wrote: I need help with this task: I have an HTML file with this snippet:

regex text out of a file

2007-07-18 Thread Alex Egg
I need help with this task: I have an HTML file with this snippet: I would like to get each the src attribute value of each script tag, e.g. "scripts/script1.js, scripts/script2.js, scripts/script3.js " After I extract the scripts I would like to be able to pass them another ant task in my