gt; > flags="g" byline="true" encoding="utf-8" />
>>
>> I've tried other ways to match non-breaking spaces ( \0240
>> U+00A0) but have had no success yet. I didn't alter the regular
>> expression libraries in m
acter in a file
with a normal space character. The source file is encoded using UTF-8.
I can't get this to work using the replaceregexp task. Here's the
syntax I'm using:
I've tried other ways to match non-breaking spaces ( \0240
U+00A0) but have had no success yet. I didn&
ng spaces ( \0240
U+00A0) but have had no success yet. I didn't alter the regular
expression libraries in my Ant installation. Is that what I need to
do? Or is there a string I can put into the match attribute that will
match UTF-8 non-breaking spaces?
Thanks fo
Hello,
I haven't been able to find a way to filter the value of a property with
regular expressions. Is there any way to do it with Ant 1.7?
I need something like this, but without using 3rd party dependencies:
http://ant-contrib.sourceforge.net/tasks/tasks/propertyregex.html
Basically, I just w
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
2009, durbans wrote:
durbans wrote:
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.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498429.html
Sent from the Ant - Users mailing
a variable in input parameter ?
It seems that if I write
http://old.nabble.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498429.html
Sent from the Ant - Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-
want to IGNORE every character before " TODAY" and every character after
"TODAY " and
test if the text HAS the word " TODAY " in his body.
Thanks
Andrea
--
View this message in context:
http://old.nabble.com/Regular-expression-in-%3Cpropertyregex%3E-tp26498126p26498126.h
ail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>
>
--
View this message in context:
http://old.nabble.com/Regular-expression-for-deleting-new-lines-with-Ant-tp26421426p26496235.
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
y posted on the coderanch forums
(http://www.coderanch.com/t/471737/Ant-Maven-Other-Build-Tools/Regular-e
xpression-deleting-new-lines)
and have gotten no reply so I've come here for help... any ideas?
--
View this message in context:
http://old.nabble.com/Regular-expression-f
ll of tabs or white
space from a file ... its not working however... I've used the following
code.
but I've got nothing. I originally posted on the coderanch forums
(http://www.coderanch.com/t/471737/Ant-Maven-Other-Build-Tools/Regular-expression-del
ch.com/t/471737/Ant-Maven-Other-Build-Tools/Regular-expression-deleting-new-lines)
and have gotten no reply so I've come here for help... any ideas?
--
View this message in context:
http://old.nabble.com/Regular-expression-for-deleting-new-lines-with-Ant-tp26421426p26421426.html
Sent from the
her implementation was correct'
--- On Thu, 4/16/09, Cool The Breezer wrote:
From: Cool The Breezer
Subject: Re: Help regular expression for appending to the content
'
--- On Thu, 4/16/09, Cool The Breezer wrote:
> From: Cool The Breezer
> Subject: Re: Help regular expression for appending to the content of a tag
> To: "Ant Users List"
> Date: Thu
, Brian Agnew wrote:
> From: Brian Agnew
> Subject: Re: Help regular expression for appending to the content of a tag
> To: "Ant Users List"
> Date: Thursday, April 16, 2009, 6:25 AM
> If you're doing XML manipulation,
> is more appropriate.
>
> http://w
If you're doing XML manipulation, is more appropriate.
http://www.oopsconsultancy.com/software/xmltask
Brian
Cool The Breezer wrote:
Hi,
I am looking for help to append some text to the existing content of a tag. E.g.
The existing content of the tag
And I want to append some more
No as I was thinking it could be achieved by regex manipulation.
- RB
--- On Thu, 4/16/09, Felix Dorner wrote:
> From: Felix Dorner
> Subject: RE: Help regular expression for appending to the content of a tag
> To: "Ant Users List"
> Date: Thursday, April 16, 2009, 5:0
Hey,
> And I want to append some more text like reloadable="true" docBase="\YYYRoot"/>, so the content of
> tag would be
>
>
>
>
Did you consider to use a strylesheet transformation?
Felix
-
To unsubscribe, e-mail: user-
Hi,
I am looking for help to append some text to the existing content of a tag.
E.g.
The existing content of the tag
And I want to append some more text like , so the content of tag would be
I am currrently looking into replaceregexp filter but it is used for replace
the tes
Hello,
Here is the replaceregexp call:
As you can see I wrote the regular expression: *
(?<=\#\[SYD\-DATASOURCE\]\s)disabled\s=\sfalse*
To match text like the following:
*..
(line break)
#[SYD-DATASOURCE]
disabled = false
..
..
*
When testing this regular expression out
008 13:30
> An: Ant Users List
> Betreff: Re: AW: Set a property based on a regular expression
> (without ant-contrib)
>
> Hi Jan,
>
> Thanks for your reply, but is not what I want. I want
> to extract the number part of the $ant.version
> property. e.g.
>
> Ap
22:39
> > An: Ant Users List
> > Betreff: Re: Set a property based on a regular
> expression
> > (without ant-contrib)
> >
> > This might exactly what you're looking for: Check
> the
> > task. It has the ability to examine the Ant
> version, so you c
ntraub [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 25. April 2008 22:39
> An: Ant Users List
> Betreff: Re: Set a property based on a regular expression
> (without ant-contrib)
>
> This might exactly what you're looking for: Check the
> task. It has the ability to exa
> know that there are built-in properties, but in some
> linux distros -like gentoo- the {$ant.version}
> property result is:
>
> Apache Ant version 1.7.0 compiled on April 8 2008
>
> and I just want only the "1.7.0" part. Is There a way
> to set a value of a
008
and I just want only the "1.7.0" part. Is There a way
to set a value of a property based on the match of a
regular expression, similar to propertyregexp of
ant-contrib? I want to do it with ant's core, not
external libraries.
I hope that someone can give some advice.
Best R
ibraries/ivy-Repository/gen-content.xml:54: The following
> error occurred while executing this line:
> /home/tina/opt/JavaLibraries/ivy-Repository/gen-content.xml:63: No supported
> regular expression matcher found
>
> I don't understand this error because i use JDK 1.5
error occurred while executing this line:
/home/tina/opt/JavaLibraries/ivy-Repository/gen-content.xml:63: No supported
regular expression matcher found
I don't understand this error because i use JDK 1.5 - therefore i shouldn't need
some 3rd party libraries cause the regex funcionali
ome/tina/opt/JavaLibraries/ivy-Repository/gen-content.xml:54: The following
error occurred while executing this line:
/home/tina/opt/JavaLibraries/ivy-Repository/gen-content.xml:63: No supported
regular expression matcher found
I don't understand this error because i use JDK 1.5 - therefore i shoul
You can't. You must use instead. --DD
On 7/25/06, samuel cheung <[EMAIL PROTECTED]> wrote:
Hi,
How can I use regular expression in task?
I have an ant call like this:
how can I use regular expressesion to replace "IField1, IField2,
IField3" with any characters? So t
Hi,
How can I use regular expression in task?
I have an ant call like this:
how can I use regular expressesion to replace "IField1, IField2,
IField3" with any characters? So that this replace will still work
even if I 'A' implements more i
Hello Benjamin,
I did not look into the source code of the propertyregex task (from
ant-contrib), but if it behaves like other regular expression based ant
tasks,
maybe it uses the same mechanism like ant to find out a regular
expression implementation.
The property |ant.regexp.regexpimpl
Hi there.
I'm using the propertyregex task - or at least I'd love to. I get the
exception given in the message subject when I try to run ant with my
buildfile.
I'm using java 1.5 and rely on regexps quite heavily.. Since the
platform supports them: What's the dependency here? Checking googl
ok actually i needed 8 backslashes!
Hind Lwahhabi.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tue 8/2/2005 5:50 PM
To: user@ant.apache.org
Subject: RE: Another Problem with a regular expression
in fact when i put my folder path in a property it does
/2005 5:45 PM
To: user@ant.apache.org
Subject: RE: Another Problem with a regular expression
I tried with 4 backslashes but no change:
c:foobardude
Hind Lwahhabi.
-Original Message-
From: Gisbert Amm [mailto:[EMAIL PROTECTED]
Sent: Tue 8/2/2005 5:25 PM
To: Ant Users List
I tried with 4 backslashes but no change:
c:foobardude
Hind Lwahhabi.
-Original Message-
From: Gisbert Amm [mailto:[EMAIL PROTECTED]
Sent: Tue 8/2/2005 5:25 PM
To: Ant Users List
Subject: Re: Another Problem with a regular expression
You need to escape the backslashes
change anything...)
Hind Lwahhabi.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tue 8/2/2005 4:36 PM
To: user@ant.apache.org
Cc: [EMAIL PROTECTED]
Subject: FW: regular expression help+tokens instead of words
Hind Lwahhabi.
-Original Message-
From:
:36 PM
To: user@ant.apache.org
Cc: [EMAIL PROTECTED]
Subject: FW: regular expression help+tokens instead of words
Hind Lwahhabi.
-Original Message-
From: Lwahhabi, Hind
Sent: Tue 8/2/2005 4:34 PM
To: Ant Users List Patrick Martin
Subject: RE: regular expression help+tokens instead of words
no b
Hind Lwahhabi.
-Original Message-
From: Lwahhabi, Hind
Sent: Tue 8/2/2005 4:34 PM
To: Ant Users List Patrick Martin
Subject: RE: regular expression help+tokens instead of words
no because the line does not start with a blank.
thanks anyway:)
i have solved my problem(see my previous
-
> 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
> .
>
>
ok i just modified with following:regexp="([0-9A-Z\/\.a-z]+)"
thanks again for your help guys!
Hind Lwahhabi.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tue 8/2/2005 3:58 PM
To: user@ant.apache.org
Subject: RE: regular expression help+toke
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
Here's a code snippet that does what you'd like to do with
.
The result is:
[echo] Regular expression is: myPrefixFoo myPrefixFoo myPrefixFoo
myPrefixFoo
Basel Ahmed
Federated Systems Group
Site Build & Launch (Duluth)
[EMAIL PROTECTED]
678-474-3203
"Time is the co
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
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"
I am doing it currently with but i am sure there is an elegant way
: Wednesday, June 22, 2005 1:55 PM
To: Ant Users Group
Subject: Need help writing regular expression??
Hello all,
Quick question... I need write a regular expression to generate
from a full name (i.e. )
Given the string: Ninju Bohra
I want: NBohra
What is the regular expression (if any) I
;
> casesensitive="false"/>
>
> Andy Hardacker
>
> -Original Message-
> From: Ninju Bohra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 22, 2005 4:55 PM
> To: Ant Users Group
> Subject: Need help writing regular expression??
>
>
Untested, but probably something like this:
Andy Hardacker
-Original Message-
From: Ninju Bohra [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 4:55 PM
To: Ant Users Group
Subject: Need help writing regular expression??
Hello all,
Quick question... I need write a regular
I would try to replace all spaces '\s' with empty values.
- Alexey.
Ninju Bohra wrote:
Hello all,
Quick question... I need write a regular expression to
generate from a
full name (i.e. )
Given the string: Ninju Bohra
I want: NBohra
What is the regular expression (if any) I
Hello all,
Quick question... I need write a regular expression to
generate from a
full name (i.e. )
Given the string: Ninju Bohra
I want: NBohra
What is the regular expression (if any) I would use?
Thanx,
Ninju
builderocx.cab#version=4,2,0,0'
> viewastext id='formbuilderocx' >"; // "a b c a b c";
> String patternStr = "[0-9][0-9]+(,[0-9][0-9]){3}"; //"a";
> String replacementStr = "3,7,0,5";
>
> // Compil
ot;; // "a b c a b c";
String patternStr = "[0-9][0-9]+(,[0-9][0-9]){3}"; //"a";
String replacementStr = "3,7,0,5";
// Compile regular expression
Pattern pattern = Pattern.compile(patternStr);
// Replace
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 wha
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.
Thanks in advance.
-Original Message-
From: Mark Lundquist [mailto:[EMAIL PROTECTED]
Sent: Friday, March 04, 2005
Thanks All,
I am done with the regular expression, am into replacing text now.
Wonder why that is not working ..
Thanks for the expression..
-Original Message-
From: Mark Lundquist [mailto:[EMAIL PROTECTED]
Sent: Friday, March 04, 2005 12:02 PM
To: Ant Users List
Subject: Re
r =
"[0-9]+(,[0-9]){3}"; //"([0-9],){4}+"; //"([a-zA-Z]+[0-9]+)";
// Compile regular expression
Pattern pattern =
Pattern.compile(patternStr);
Matcher matcher =
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]
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]+",&
Message-
> From: Radha Sangal [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 04, 2005 9:38 AM
> To: Ant Users List
> Subject: regular expression
>
> Could someone help me build regular expression for a string like this
> 1,6,3,2.
>
>
>
> I am getting error if I write
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 ab
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] + )";
I've been stumped for a few days with a particular search/replace
expression that I'm using under Ant 1.5.1 which is
using Jakarta Oro for it's regex engine. Here are the details to my
problem:
The keyword that I'm searching for and trying to replace is the keyword
"class". I'm trying to replace
> Sent: Friday, February 21, 2003 12:33 AM
> To: [EMAIL PROTECTED]
> Subject: AW: Regular expression matching
>
>
> I don´t know the JSP 2 Syntax and I don´t know what (exactly)
> you want to replace. But I did a quick hack in perl:
>
> Input:
>
&g
ruar 2003 08:13
> An: 'Ant Users List'
> Betreff: RE: Regular expression matching
>
> I'm no reqular expression expert - anyone have a clue how to
> replace my
> desired strings?
>
> Thanks,
>
> Matt
>
> > -Original Message-
> &
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
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
---
> -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
&g
> 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
72 matches
Mail list logo