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
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
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.
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
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
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="(.*)/*"
>>
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
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
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
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
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
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
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
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
>
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 = "([^-]+)-([^-]+)(-(.
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
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
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
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
19 matches
Mail list logo