Re: propertyregex ANT task - need to extract string without newline character

2020-10-16 Thread KM
g.StdErrLog OBF:1uha1v9q1tvn1zep1XXv8w1ugg MD5:2a72dd47fe552bcdd07ace50e9047baf Propertyregex ANT task generates output: OBF:1uha1v9q1tvn1zep1XXv8w1ugg My suspicion is Propertyregex output has a newline character as well, because  test_file.xml has the expected string along with the newline char

propertyregex ANT task - need to extract string without newline character

2020-10-15 Thread forumUsr forumUsr
@25148ms to org.eclipse.jetty.util.log.StdErrLog OBF:1uha1v9q1tvn1zep1XXv8w1ugg MD5:2a72dd47fe552bcdd07ace50e9047baf Propertyregex ANT task generates output: OBF:1uha1v9q1tvn1zep1XXv8w1ugg My suspicion is Propertyregex output has a newline character as well, because test_file.xml has the

Re: propertyregex Extraction of last element in the PATH??

2012-01-02 Thread narenvudugu
Thanks Klaus Malorny!! It's Working for me,i was struggling since 3 last days u saved my lot's of time!!..Thank you very much!! -- View this message in context: http://ant.1045680.n5.nabble.com/propertyregex-Extraction-of-last-element-in-the-PATH-tp5109384p51

Re: propertyregex Extraction of last element in the PATH??

2012-01-02 Thread Klaus Malorny
On 02/01/12 05:43, narenvudugu wrote: Please Find updated Post! I am trying to allow complete incoming input and extract last element name from the input ServiceURL path (usaly separated by /),please find below script which is not working for me...please help as soon as possible.

Re: propertyregex Extraction of last element in the PATH??

2012-01-01 Thread narenvudugu
/hello/world/etc -- View this message in context: http://ant.1045680.n5.nabble.com/propertyregex-Extraction-of-last-element-in-the-PATH-tp5109384p5114022.html Sent from the Ant - Users mailing list archive at Nabble.com. - To

Re: propertyregex Extraction of last element in the PATH??

2011-12-30 Thread Scot P. Floess
soon as possible. ** Thanks in Advance -- View this message in context: http://ant.1045680.n5.nabble.com/propertyregex-Extraction-of-last-element-in-the-PATH-tp5109384p5109384.html Sent from the Ant - Users mailing list archive at Nabble.com. Scot P. Floess RHCT (Certificate

Re: propertyregex question

2010-06-23 Thread Andy2008
27;d probably benefit from reading up on > Java regular expression syntax. > > > > > >regexp="([^/]+)" select="\0" casesensitive="false" /> > > > > -- > Michael Ludwig > > -

Re: propertyregex question

2010-06-23 Thread Michael Ludwig
Andy2008 schrieb am 22.06.2010 um 17:17 (-0700): > > Here's my input > > abc/long/distance > > I want to get abc back. Here's my code > >input="${input}" > regexp="(.*)/*" > select="\0" > casesensitive="false" /> > > but I got back the

Re: propertyregex question

2010-06-22 Thread Scot P. Floess
Try select="\1" On Tue, 22 Jun 2010, Andy2008 wrote: Here's my input abc/long/distance I want to get abc back. Here's my code but I got back the whole string (abc/long/distance) Do you have any ideas? Thanks -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home

propertyregex question

2010-06-22 Thread Andy2008
Here's my input abc/long/distance I want to get abc back. Here's my code but I got back the whole string (abc/long/distance) Do you have any ideas? Thanks -- View this message in context: http://old.nabble.com/propertyregex-question-tp28966275p28966275.html Sent from the A

Re: PropertyRegex help

2010-04-16 Thread Andy2008
first > pair > of parentheses, it's "\1". > > Here's a document I created to explain regular expressions: < > http://dl.dropbox.com/u/433257/Regular_Expressions.doc> > > On Thu, Apr 15, 2010 at 8:18 PM, Andy2008 wrote: > >> >&

Re: PropertyRegex help

2010-04-16 Thread Scot P. Floess
ere's a document I created to explain regular expressions: < http://dl.dropbox.com/u/433257/Regular_Expressions.doc> On Thu, Apr 15, 2010 at 8:18 PM, Andy2008 wrote: Here's my input dev-abc.com:8001 I want abc.com:8001 back. Below is my propertyregex but ${url} returns

Re: PropertyRegex help

2010-04-15 Thread David Weintraub
ox.com/u/433257/Regular_Expressions.doc> On Thu, Apr 15, 2010 at 8:18 PM, Andy2008 wrote: > > Here's my input > > dev-abc.com:8001 > > I want abc.com:8001 back. Below is my propertyregex > > input="dev-abc.com:8001" >reg

Re: PropertyRegex help

2010-04-15 Thread Scot P. Floess
You might try wrapping the * in parens like Honestly, didn't try this - went back to look at some examples I've done in the past On Thu, 15 Apr 2010, Andy2008 wrote: Here's my input dev-abc.com:8001 I want abc.com:8001 back. Below is my propertyregex but ${url} ret

PropertyRegex help

2010-04-15 Thread Andy2008
Here's my input dev-abc.com:8001 I want abc.com:8001 back. Below is my propertyregex but ${url} returns \1 Do you have any ideas? -- View this message in context: http://old.nabble.com/PropertyRegex-help-tp28261946p28261946.html Sent from the Ant - Users mailing list archi

RE: propertyregex

2008-09-02 Thread Rebhan, Gilbert
Hi, as Jan and Stefan already stated the {5} in the first goup is wrong. Notice you may write \d instead of [0-9], so = will do the job. btw. if the ${date} comes from a tstamp task, you don't need the propertyregex stuff at all, f.e. = will give you = [echo] ${date} == 20

Re: propertyregex

2008-09-02 Thread Stefan Bodewig
On Tue, 2 Sep 2008, Yannick Feuzet <[EMAIL PROTECTED]> wrote: > I want to attain the following String manipulation: > > 200802 2008/02 > > ich wrote the followinfg code bat is not working. Can somebody help > me. Thanks > > input="${date}" // 200802 >

AW: propertyregex

2008-09-02 Thread Jan.Materne
regexp="([0-9]{5})([0-9]{2})" replace="\1/\2" The first group has 4 not 5 characters. Jan -Ursprüngliche Nachricht- Von: Yannick Feuzet [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 2. September 2008 14:38 An: user@ant.apache.org Betreff: propertyregex Hello al

propertyregex

2008-09-02 Thread Yannick Feuzet
Hello all, I want to attain the following String manipulation: 200802 2008/02 ich wrote the followinfg code bat is not working. Can somebody help me. Thanks ${adjustedDate} why Thanks _ Appelez vos amis de PC à PC -- C

RE: propertyregex regexp construct question

2006-11-13 Thread Rémon van Gijn
Scot & Bill, many thanks, that did the trick perfectly. -Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: vrijdag 10 november 2006 17:36 To: Ant Users List Subject: Re: propertyregex regexp construct question Rémon: Set regexp = "([^-]+)-([^-]+)(-(.

RE: propertyregex regexp construct question

2006-11-10 Thread bill/wilandra
:[EMAIL PROTECTED] Sent: Friday, November 10, 2006 7:56 AM To: Ant Users List Subject: propertyregex regexp construct question Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85 Basically I want to strip all until the second '-', so that

Re: propertyregex regexp construct question

2006-11-10 Thread Scot P. Floess
Rémon: Set regexp = "([^-]+)-([^-]+)(-(.*))" and select = "\3" This assumes a pattern where you have some chars, a dash, some more chars and then a final dash... Scot Rémon van Gijn wrote: Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARI

propertyregex regexp construct question

2006-11-10 Thread Rémon van Gijn
Hi I want to use the propertyregex (ant-contrib) to lean up a string: PCS-VARIABLEAPPNAME-2.8.3-85 Basically I want to strip all until the second '-', so that '-2.8.3-85' remains. Could anyone give me a hand with the regexp and selec

Re: propertyregex

2006-03-02 Thread Mark Lybarger
select the rest of the string. > > HTH Bill > > -Original Message- > From: Mark Lybarger [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 02, 2006 8:11 AM > To: user@ant.apache.org > Subject: propertyregex > > i want to set a property using propertyre

RE: propertyregex

2006-03-02 Thread bill/wilandra
ay, March 02, 2006 8:11 AM To: user@ant.apache.org Subject: propertyregex i want to set a property using propertyregex from ant-contrib. i'm not a regex expert/novice. here's my string: Sticky Tag: REL_1_0 (branch: 1.3.2) I'd like to extract the REL_1_0 (third word, or wo

propertyregex

2006-03-02 Thread Mark Lybarger
i want to set a property using propertyregex from ant-contrib. i'm not a regex expert/novice. here's my string: Sticky Tag: REL_1_0 (branch: 1.3.2) I'd like to extract the REL_1_0 (third word, or word after Sticky Tag:) to a property. some help with the regexp of it wo

AW: propertyregex: capitalizing entire string

2005-05-10 Thread Jan . Materne
You can use

propertyregex: capitalizing entire string

2005-05-10 Thread Holger Rauch
cho] foo = blah/blubber/foo [echo] FOO = [A-Z][A-Z][A-Z][A-Z]/[A-Z][A-Z][A-Z][A-Z][A-Z][A-Z][A-Z]/[A-Z][A-Z][A-Z] Is case conversion possible with the propertyregex task from ant-contrib? If so, which adjustments do I have to make? Any help is greatly appreciated! Greetings,

Re: regex newbie. propertyregex help, please.

2005-01-24 Thread Nat Gross
Matt Benson wrote: propertyregex is an ant-contrib question, really, and Is there another list more appropriate for ant-contrib? you seem to be trying to use nested elements where propertyregex doesn't appear to want any, but you basically want to match "^(.*)Bean$" and r

Re: regex newbie. propertyregex help, please.

2005-01-24 Thread Matt Benson
propertyregex is an ant-contrib question, really, and you seem to be trying to use nested elements where propertyregex doesn't appear to want any, but you basically want to match "^(.*)Bean$" and replace with "\1". HTH, Matt --- Nat Gross <[EMAIL PROTECTED]> wrote:

regex newbie. propertyregex help, please.

2005-01-24 Thread Nat Gross
Hi; To a regex newbie can someone please supply the pattern to strip off the word "Bean" from the string. In the following, assuming that property 'beanName' contains a string 'AnyBean', the new 'beanPrefix' property should be 'Any'. (By convention, the substring 'Bean' is always at the end of

RE: [Ant-Contrib]PropertyRegex task

2004-10-21 Thread Dominique Devienne
> From: Marcel Stör [mailto:[EMAIL PROTECTED] > > [EMAIL PROTECTED] wrote: > > not tried: > > I did. Works fine. Thanks a lot. > > > match: (.*)\.(.*)\.(.*)\.(.*) > > select: \1 my > > \2 property > > \3 56238912 > > \4 1285 > > but without check for digits or length. Not tried either, but this

Re: [Ant-Contrib]PropertyRegex task

2004-10-20 Thread Marcel Stör
[EMAIL PROTECTED] wrote: > not tried: I did. Works fine. Thanks a lot. > match: (.*)\.(.*)\.(.*)\.(.*) > select: \1 my > \2 property > \3 56238912 > \4 1285 > but without check for digits or length. Marcel - To unsubscribe, e-m

AW: [Ant-Contrib]PropertyRegex task

2004-10-20 Thread Jan . Materne
sendet am: Donnerstag, 21. Oktober 2004 08:26 > An: [EMAIL PROTECTED] > Betreff: [Ant-Contrib]PropertyRegex task > > Hi all, > > I'm struggleing with the PropertyRegex task... > From a property that looks like > anyChar.anyChar.8figures.4figures such as > my.propert

[Ant-Contrib]PropertyRegex task

2004-10-20 Thread Marcel Stör
Hi all, I'm struggleing with the PropertyRegex task... >From a property that looks like anyChar.anyChar.8figures.4figures such as my.property.56238912.1285 I'd like to extract the 8 figures. What would the regexp and select attributes be? Thanks for your