|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Ant style Pattern Matching api to find indexOfHi,
I am searching ant source to find, if there are api for string contains match as per the fileset include and exclude syntax. e.g If I have pattern like *3_m3 and ask if it contains the strings (with option of case sensitive index match index search) g3 or abc3 etc.. then it should say yes with index as 0 (the start index) I see SelectorUtils which does do exact match, but I am looking for indexOf kind of match. Any leads to such api pl if one exists. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com |
|
|
Re: Ant style Pattern Matching api to find indexOfAny expert comments pl..
I want a api to know if say String "abc" exists as a sub string in the pattern "nag*bc" . Regards, Nagendra |
|
|
Re: Ant style Pattern Matching api to find indexOfCheck out Ant Contrib's propertyregex task On Wed, 28 Oct 2009, Raja Nagendra Kumar wrote: > > Any expert comments pl.. > > I want a api to know if say String "abc" exists as a sub string in the > pattern "nag*bc" . > > > Regards, > Nagendra > -- > View this message in context: http://www.nabble.com/Ant-style-Pattern-Matching-api-to-find-indexOf-tp25947257p26092211.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > 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: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Ant style Pattern Matching api to find indexOfThat may not give you indexOf - but you can determine if the sub string does exist... On Wed, 28 Oct 2009, Scot P. Floess wrote: > > Check out Ant Contrib's propertyregex task > > On Wed, 28 Oct 2009, Raja Nagendra Kumar wrote: > >> >> Any expert comments pl.. >> >> I want a api to know if say String "abc" exists as a sub string in the >> pattern "nag*bc" . >> >> >> Regards, >> Nagendra >> -- >> View this message in context: >> http://www.nabble.com/Ant-style-Pattern-Matching-api-to-find-indexOf-tp25947257p26092211.html >> Sent from the Ant - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@... >> For additional commands, e-mail: user-help@... >> >> > > 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: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > 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: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Ant style Pattern Matching api to find indexOfThank You Scot, I had a look at propertyregex, but this seems to support regex matching as per the regular expression standards. However, I am looking for ant style include, exclude pattern contains/indexof match.
e.g in includes we could use * which is equivalent of saying [.]* or **/ to say any sub directory. I am looking to have contains/indexOf match using such kind of ant pattern. I really applicate your inputs on this. Regards Nagenra |
|
|
Re: Ant style Pattern Matching api to find indexOfSorry 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".' So, now you want what exactly? Is this something to see if a file exists in a directory or some file name pattern? I'm sorry - I don't know what it is you are really wanting... Can you give a more thorough example? On Wed, 28 Oct 2009, Raja Nagendra Kumar wrote: > > Thank You Scot, I had a look at propertyregex, but this seems to support > regex matching as per the regular expression standards. However, I am > looking for ant style include, exclude pattern contains/indexof match. > > e.g in includes we could use * which is equivalent of saying [.]* or **/ to > say any sub directory. I am looking to have contains/indexOf match using > such kind of ant pattern. > > I really applicate your inputs on this. > > Regards > Nagenra > -- > View this message in context: http://www.nabble.com/Ant-style-Pattern-Matching-api-to-find-indexOf-tp25947257p26096861.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > 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: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Ant style Pattern Matching api to find indexOfHi 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.
|
|
|
Re: Ant style Pattern Matching api to find indexOfI had a look at DirectoryScanner scan() impl and find that
SelectorUtils is the class which is supporting all the matchings for include and excludes. Basically like the match method public static boolean match(String pattern, String str, boolean isCaseSensitive) I am looking if there is any method which says public static boolean containsString(String pattern, String aString2BeContained, boolean isCaseSensitive) the containsString should return true, if there is a match for aString2BeContained at sub pattern level. It is not a complete match of entire pattern and string, but the said string can match to a sub-pattern of the given pattern. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com |
|
|
Re: Ant style Pattern Matching api to find indexOfOK 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: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > 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: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |