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
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
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.
---
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
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,
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.
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
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
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
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
-
> 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
> .
>
>
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
AM cc
Subject
Please respond to RE: regular expression help
"Ant Users List"
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
[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
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
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
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
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}',
&
: 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,
-
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
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
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
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
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}
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
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
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
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
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
---
> 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
31 matches
Mail list logo