OK I see what you are asking now - got it. So you should be able to do that with propertyregex - I just need to think about the regular expression - but it is possible. Is a simple true/false sufficient as a result or do you require the actual indexOf?

BTW, you could probably do something similar scripting with beanshell or the like.

But - I am fairly confident you can accomplish this with propertyregex

On Wed, 28 Oct 2009, Raja Nagendra Kumar wrote:


Hi Scot,

True, I am looking for the same. i.e to know if a sub string abc exists in
pattern "nag*bc" or "naga*" etc..

What I understand by looking at  propertyregex is it can match and identify
the patterns if

nag*bc --> would have been nag .*bc, but  nag*bc is ant fileset's include
and exclude pattern matching syntax and it does not follow the same regular
expression syntax.

May be if you could let me know the syntax of how you see propregex can
solve my original need it would be great full.


Scot P. Floess-2 wrote:

Sorry you lost me now...  Your original post stated 'I want a api to know
if say String "abc"  exists as a sub string in the pattern "nag*bc".


--
View this message in context: 
http://www.nabble.com/Ant-style-Pattern-Matching-api-to-find-indexOf-tp25947257p26107102.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to