I'm no reqular expression expert - anyone have a clue how to replace my desired strings?
Thanks, Matt > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 21, 2003 12:07 AM > To: [EMAIL PROTECTED] > Subject: AW: Regular expression matching > > > Have you tried > > <loadfile> > <filterchain/> > </loadfile> > > > You can write your own filter for doing the substitution, or > write your JSP not mit <c:out> but with @out@, then you can > use that as key and substitute it via <expandproperties/> or > with <replacetokens> <token key="out" value="<c:out>"/> > </replacetokens>. (not tested, but could work). > > I think the best way is to write a <replaceregexp><regexp > pattern="foo" substite="bar"/></>. > > > Jan Matčrne > > > > > -----Ursprüngliche Nachricht----- > > Von: Matt Raible [mailto:[EMAIL PROTECTED]] > > Gesendet am: Freitag, 21. Februar 2003 03:59 > > An: 'Ant Users List' > > Betreff: RE: Regular expression matching > > > > Actually, what I'd like to do is be able to create a JSP 1.2 > > version of > > my app (with c:out) and a JSP 2.0 (with c:out stripped > out). I'd like > > to have this as a switch when I run my build.xml. > > > > Matt > > > > > -----Original Message----- > > > From: Craig Berry [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, February 20, 2003 7:25 PM > > > To: Ant Users List > > > Subject: RE: Regular expression matching > > > > > > > > > If you're just talking about doing this once for the > > > codebase, I'd suggest using global substitution from your > > > favorite IDE (Eclipse does this very well). Or, if you're > > > feeling old-school, use perl or sed or the like from the > > command line. > > > > > > -----Original Message----- > > > From: Matt Raible [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, February 20, 2003 3:57 PM > > > To: [EMAIL PROTECTED] > > > Subject: Regular expression matching > > > > > > > > > Is there a way that I can parse my .jsp files with a regexp > > > matching and convert all of: > > > > > > <c:out value="${...}" /> > > > > > > to simply: > > > > > > ${...} > > > > > > I want to be able to produce a JSP 2.0 version of my app from > > > a JSP 1.2 codebase that uses JSTL. > > > > > > Thanks, > > > > > > Matt > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]