Re: Regular expression to match non-breaking spaces

2011-03-12 Thread wolfgang haefelinger
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

Re: Regular expression to match non-breaking spaces

2011-03-11 Thread Brian Agnew
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&

Regular expression to match non-breaking spaces

2011-03-11 Thread Peter Desjardins
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

Filter property value with regular expression

2010-06-29 Thread Gustavo Narea
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

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

Re: Regular expression in

2009-11-24 Thread Scot P. Floess
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

Re: Regular expression in

2009-11-24 Thread durbans
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-

Regular expression in

2009-11-24 Thread durbans
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

Re: Regular expression for deleting new lines with Ant

2009-11-24 Thread christoforever
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.

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
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

Re: Regular expression for deleting new lines with Ant

2009-11-19 Thread Scot P. Floess
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

Regular expression for deleting new lines with Ant

2009-11-19 Thread christoforever
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

Re: Help regular expression for appending to the content of a tag

2009-04-16 Thread Brian Agnew
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

Re: Help regular expression for appending to the content of a tag

2009-04-16 Thread Cool The Breezer
' --- 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

Re: Help regular expression for appending to the content of a tag

2009-04-16 Thread Cool The Breezer
, 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

Re: Help regular expression for appending to the content of a tag

2009-04-16 Thread Brian Agnew
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

RE: Help regular expression for appending to the content of a tag

2009-04-16 Thread Cool The Breezer
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

RE: Help regular expression for appending to the content of a tag

2009-04-16 Thread Felix Dorner
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-

Help regular expression for appending to the content of a tag

2009-04-16 Thread Cool The Breezer
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

Using replaceregexp with a positive lookbehind regular expression

2008-05-01 Thread Anthony Bargnesi
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

AW: AW: Set a property based on a regular expression (without ant-contrib)

2008-04-28 Thread Jan.Materne
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

Re: AW: Set a property based on a regular expression (without ant-contrib)

2008-04-28 Thread Iv�n
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

AW: Set a property based on a regular expression (without ant-contrib)

2008-04-27 Thread Jan.Materne
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

Re: Set a property based on a regular expression (without ant-contrib)

2008-04-25 Thread David Weintraub
> 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

Set a property based on a regular expression (without ant-contrib)

2008-04-25 Thread Iv�n
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

Re: No supported regular expression matcher found

2006-10-05 Thread Antoine Levy-Lambert
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

Re: No supported regular expression matcher found

2006-09-27 Thread Mark Miller
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

No supported regular expression matcher found

2006-09-27 Thread Tina Meier
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

Re: How can I use regular expression in task?

2006-07-25 Thread Dominique Devienne
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

How can I use regular expression in task?

2006-07-25 Thread samuel cheung
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

Re: No supported regular expression matcher found

2006-01-23 Thread Antoine Levy-Lambert
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

No supported regular expression matcher found

2006-01-23 Thread Benjamin Podszun
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

solvedRE: Another Problem with a regular expression

2005-08-02 Thread hind.lwahhabi
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

RE: Another Problem with a regular expression

2005-08-02 Thread hind.lwahhabi
/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

RE: Another Problem with a regular expression

2005-08-02 Thread hind.lwahhabi
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

Re: Another Problem with a regular expression

2005-08-02 Thread Gisbert Amm
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:

Another Problem with a regular expression

2005-08-02 Thread hind.lwahhabi
: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

FW: regular expression help+tokens instead of words

2005-08-02 Thread hind.lwahhabi
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

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 > . > >

solved: regular expression help+tokens instead of words

2005-08-02 Thread hind.lwahhabi
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

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
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

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

regular expression help

2005-08-02 Thread hind.lwahhabi
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

RE: Need help writing regular expression??

2005-06-22 Thread Bill Rich
: 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

RE: Need help writing regular expression??

2005-06-22 Thread Ninju Bohra
; > 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?? > >

RE: Need help writing regular expression??

2005-06-22 Thread Hardacker, Andrew
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

Re: Need help writing regular expression??

2005-06-22 Thread Alexey N. Solofnenko
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

Need help writing regular expression??

2005-06-22 Thread Ninju Bohra
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

RE: regular expression

2005-03-07 Thread James Abley
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

RE: regular expression

2005-03-04 Thread Radha Sangal
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

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 wha

RE: regular expression

2005-03-04 Thread Radha Sangal
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

RE: regular expression

2005-03-04 Thread Radha Sangal
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

RE: regular expression

2005-03-04 Thread Radha Sangal
r = "[0-9]+(,[0-9]){3}"; //"([0-9],){4}+"; //"([a-zA-Z]+[0-9]+)"; // Compile regular expression Pattern pattern = Pattern.compile(patternStr); Matcher matcher =

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]

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]+",&

RE: regular expression

2005-03-04 Thread Erskine, Chris
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

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 ab

regular expression

2005-03-04 Thread Radha Sangal
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] + )";

Problem with regular expression and Ant 1.5.1

2003-03-18 Thread Albert Sidelnik
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

RE: Regular expression matching

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

AW: Regular expression matching

2003-02-20 Thread Jan . Materne
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- > &

RE: Regular expression matching

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

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 ---

AW: Regular expression matching

2003-02-20 Thread Jan . Materne
> -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

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