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

2020-10-16 Thread KM
I am not sure if the regex works the same as some of the others, but you could try "$" at the end after the asterisk.  Maybe like regexp="OBF:.*$" KM On Thursday, October 15, 2020, 12:01:44 PM EDT, forumUsr forumUsr wrote: Hello I have following ANT task where I like to extract strin

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-tp5109384p5114617.html S

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
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. ServiceURL may contain url like abc/h

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

2011-12-30 Thread Scot P. Floess
I believe you forgot to include your script? On Thu, 29 Dec 2011, narenvudugu wrote: Hi, 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

Re: propertyregex question

2010-06-23 Thread Andy2008
Thanks so much. It works. You are the man :) Michael Ludwig-6 wrote: > > 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="(.*)/*" >>

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

Re: PropertyRegex help

2010-04-16 Thread Andy2008
It worked with the (.*). You guys are awesome. Thanks David Weintraub wrote: > > You need to learn about Regular Expressions and how they work. > > Try regexp="dev-(.*)" instead of regexp="dev-*" > > Note that I'm using "period asterisk" and not just an asterisk. An > asterisk > means zero

Re: PropertyRegex help

2010-04-16 Thread Scot P. Floess
Hee - good pt about the .* ;) On Thu, 15 Apr 2010, David Weintraub wrote: You need to learn about Regular Expressions and how they work. Try regexp="dev-(.*)" instead of regexp="dev-*" Note that I'm using "period asterisk" and not just an asterisk. An asterisk means zero or more of the previ

Re: PropertyRegex help

2010-04-15 Thread David Weintraub
You need to learn about Regular Expressions and how they work. Try regexp="dev-(.*)" instead of regexp="dev-*" Note that I'm using "period asterisk" and not just an asterisk. An asterisk means zero or more of the previous "character" and period means any character". Combined, that means any strin

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} returns \1 Do you h

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} == 2008/09 R

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 >

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
The following reg ex should work for you: [^-]*-[^-]*-(.*) You will need to adjust it so it works in by adding appropriate escapes. I use the RegexCoach tool to check reg exs. It is available from http://weitz.de/regex-coach. HTH Bill -Original Message- From: Rémon van Gijn [mailto:[EM

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-VARIABLEAPPNAME-2.8.3-85

Re: propertyregex

2006-03-02 Thread Mark Lybarger
THANKS!!! On 3/2/06, bill/wilandra <[EMAIL PROTECTED]> wrote: > Try reg exp > > Sticky\s+Tag:\s+([^\s]+)\s.* > > or some variation of it. Replacement register 1 will contain the REL_1_0 > from the sample string. > > It says select the word "Sticky" followed by one or more whitespace elements > fol

RE: propertyregex

2006-03-02 Thread bill/wilandra
Try reg exp Sticky\s+Tag:\s+([^\s]+)\s.* or some variation of it. Replacement register 1 will contain the REL_1_0 from the sample string. It says select the word "Sticky" followed by one or more whitespace elements followed by the word "Tag" followed by a colon followed by one or more whitespac