Re: Regular expression to match non-breaking spaces

2011-03-12 Thread wolfgang haefelinger
Peter, >>   > flags="g" byline="true" encoding="utf-8" /> I assume that Ant's XML parse will digest your character reference. In effect you are doing nothing more than Have you tried something like instead? // Wolfgang On Sat, Mar 12, 2011 at 12:48 AM, Brian Agnew wrote: > You might want

Re: Regular expression to match non-breaking spaces

2011-03-11 Thread Brian Agnew
You might want to try XMLTask, which reads XML natively and handles the specified character encodings. It'll do regexp replacements. http://www.oopsconsultancy.com/software/xmltask On 11/03/2011 18:26, Peter Desjardins wrote: Hi. I'm trying to replace every non-breaking space character in a fi

Re: Regular expression in

2009-11-24 Thread Scot P. Floess
So, problem solved? Or still unresolved? On Tue, 24 Nov 2009, durbans wrote: Sorry, I was wrong. -- View this message in context: http://old.nabble.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498505.html Sent from the Ant - Users mailing list archive at Nabble.com. ---

Re: Regular expression in

2009-11-24 Thread durbans
Sorry, I was wrong. -- View this message in context: http://old.nabble.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498505.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-m

Re: Regular expression in

2009-11-24 Thread Scot P. Floess
Are you sure INPUT_TEXT is set? I've used propertyregex with properties and it never took the string literal of the property name, curly braces and $ sign... You might echo INPUT_TEXT before the call to propertyregex to ensure you are, in fact, setting that property... On Tue, 24 Nov 2009,

Re: Regular expression in

2009-11-24 Thread durbans
durbans wrote: > > input="${INPUT_TEXT}" > regexp="" > select="\2" > casesensitive="true" /> > > Sorry I found that I have a bit different problem : How can I use a variable in input parameter ? It seems that if I write http://old.nabble.

Re: Regular expression for deleting new lines with Ant

2009-11-24 Thread christoforever
That's exactly what I ended up using. I cross-posted this on stack overflow and someone gave me the idea their as well. I'm still curious about why replaceregexp is not noticing the "\n' character. One day when I have the time I will look into it a bit more. foamdino wrote: > > Hi, > > I just

Re: Regular expression for deleting new lines with Ant

2009-11-24 Thread Kevin Jackson
Hi, I just had to strip blank lines from a file the other day, try this: http://ant.apache.org/manual/CoreTypes/filterchain.html#linetokenizer Kev - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional command

RE: Regular expression for deleting new lines with Ant

2009-11-19 Thread Moore, Kent
Will "fixcrlf" help with at least some of what you are trying to accomplish? http://ant.apache.org/manual/CoreTasks/fixcrlf.html -Original Message- From: christoforever [mailto:christofore...@gmail.com] Sent: Thursday, November 19, 2009 1:20 PM To: user@ant.apache.org Subject: Regular e

Re: Regular expression for deleting new lines with Ant

2009-11-19 Thread Scot P. Floess
If I remember correctly, someone had a similar question... To get around the issue they used one of the Java built in properties like ${line.separator} instead of \n for example... On Thu, 19 Nov 2009, christoforever wrote: I'm trying to remove all the new lines and/or lines full of tabs

Re: regular expression help+tokens instead of words

2005-08-02 Thread Patrick Martin
- > From: Basel Ahmed [mailto:[EMAIL PROTECTED] > Sent: Tue 8/2/2005 3:42 PM > To: Ant Users List > Cc: user@ant.apache.org > Subject: RE: regular expression help > > Here's a code snippet that does what you'd like to do with > . > >

RE: regular expression help+tokens instead of words

2005-08-02 Thread hind.lwahhabi
Lwahhabi. -Original Message- From: Basel Ahmed [mailto:[EMAIL PROTECTED] Sent: Tue 8/2/2005 3:42 PM To: Ant Users List Cc: user@ant.apache.org Subject: RE: regular expression help Here's a code snippet that does what you'd like to do with . The result is: [echo] Regular

RE: regular expression help

2005-08-02 Thread Basel Ahmed
AM cc Subject Please respond to RE: regular expression help "Ant Users List"

RE: regular expression help

2005-08-02 Thread hind.lwahhabi
44 E-mail:[EMAIL PROTECTED] -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: Tue 8/2/2005 3:11 PM To: Ant Users List Subject: Re: regular expression help [EMAIL PROTECTED] wrote: >Hello guys; >I would like some help for the following. >Using how would yo

Re: regular expression help

2005-08-02 Thread James Fuller
[EMAIL PROTECTED] wrote: >Hello guys; >I would like some help for the following. >Using how would you perform the following: > >input string="Foo Bar Jeff Blabla" >replacing prefix="myPrefix" >result string="myPrefixFoo myPrefixBar myPrefixJeff myPrefixBlabla" > > \w* should match every word o

RE: regular expression

2005-03-07 Thread James Abley
On Fri, 2005-03-04 at 18:20, Radha Sangal wrote: > Here it is , I tested this code with the values in comments at end of > statements and it was working but I think it doesn't work well with my > actual string... > > CharSequence inputStr = "codebase='formbuilderocx.cab#version=4,2,0,0' > viewaste

RE: regular expression

2005-03-04 Thread Radha Sangal
Mark Lundquist [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 1:17 PM To: Ant Users List Subject: Re: regular expression On Mar 4, 2005, at 10:12 AM, Radha Sangal wrote: > It never found/matched that expression in the string. Can anyone please > share a piece of code, where a regu

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 10:12 AM, Radha Sangal wrote: It never found/matched that expression in the string. Can anyone please share a piece of code, where a regular expression matches what it should and gives back the string. Why don't you post your code, and then maybe someone can point out what is w

RE: regular expression

2005-03-04 Thread Radha Sangal
12:02 PM To: Ant Users List Subject: Re: regular expression On Mar 4, 2005, at 8:57 AM, Mark Lundquist wrote: > Oh yeah, d'oh... my r.e. was wrong, it wants an extra comma :-(... > however I think you do need either a '+' or a '?' after the '{3}', &

RE: regular expression

2005-03-04 Thread Radha Sangal
: regular expression On Mar 4, 2005, at 8:57 AM, Mark Lundquist wrote: > Oh yeah, d'oh... my r.e. was wrong, it wants an extra comma :-(... > however I think you do need either a '+' or a '?' after the '{3}', > right? Ooop, no, you don't need it. OK,

RE: regular expression

2005-03-04 Thread Radha Sangal
- From: Erskine, Chris [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 11:53 AM To: Ant Users List Subject: RE: regular expression Note that that would fail due to not having a comma after the last digit. Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 Cel

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 8:57 AM, Mark Lundquist wrote: Oh yeah, d'oh... my r.e. was wrong, it wants an extra comma :-(... however I think you do need either a '+' or a '?' after the '{3}', right? Ooop, no, you don't need it. OK, enough going off half-cocked this morning. Time to score me up some cof

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 8:48 AM, [EMAIL PROTECTED] wrote: Quoting Radha Sangal <[EMAIL PROTECTED]>: Could someone help me build regular expression for a string like this 1,6,3,2. I am getting error if I write it like this String patternStr = "([0-9]+","+[0-9]+","+[0-9]+","+[0-9] + )"; wouldn't this wo

RE: regular expression

2005-03-04 Thread Erskine, Chris
5 9:46 AM > To: Ant Users List > Subject: Re: regular expression > > > On Mar 4, 2005, at 8:38 AM, Radha Sangal wrote: > > > Could someone help me build regular expression for a string like this > > 1,6,3,2. > > > > > > > > I am getting error i

Re: regular expression

2005-03-04 Thread dbrosius
Quoting Radha Sangal <[EMAIL PROTECTED]>: > Could someone help me build regular expression for a string like this > 1,6,3,2. > > > > I am getting error if I write it like this String patternStr = > "([0-9]+","+[0-9]+","+[0-9]+","+[0-9] + )"; > > wouldn't this work? [0-9]+(,[0-9]){3}

RE: regular expression

2005-03-04 Thread Erskine, Chris
What are you looking for from the RE? A quick one would be ([0-9]+,[0-9]+,[0-9]+,[0-9]+) Which should find 4 multi-digit numbers with comma's between them Chris Erskine EDS Consulting Services Colorado Springs, CO Phone: 719-265-5962 Cell: 719-640-6488 > -Original Message- > From

Re: regular expression

2005-03-04 Thread Mark Lundquist
On Mar 4, 2005, at 8:38 AM, Radha Sangal wrote: Could someone help me build regular expression for a string like this 1,6,3,2. I am getting error if I write it like this String patternStr = "([0-9]+","+[0-9]+","+[0-9]+","+[0-9] + )" well yeah :-)... the above is not a valid string literal. Look a

RE: Regular expression matching

2003-02-21 Thread Matt Raible
writing :-) I did a search for that. It´s an optional task > (not a filter where I did my first search). > > So the Target could be (not tested) > > > > > > > > > > > > > > > > > > > > Jan Matèrne > > > &g

RE: Regular expression matching

2003-02-20 Thread Matt Raible
sted, but could work). > > I think the best way is to write a pattern="foo" substite="bar"/>. > > > Jan Matèrne > > > > > -Ursprüngliche Nachricht- > > Von: Matt Raible [mailto:[EMAIL PROTECTED]] > > Gesendet am: Freitag, 2

Re: Regular expression matching

2003-02-20 Thread Stefan Bodewig
On Thu, 20 Feb 2003, Matt Raible <[EMAIL PROTECTED]> wrote: > Is there a way that I can parse my .jsp files with a regexp matching > and convert all of: > > > > to simply: > > ${...} If you are able to write a regexp for this, is your friend. Stefan ---

RE: Regular expression matching

2003-02-20 Thread Matt Raible
> 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 ver