Hi Ken, I spent some time exploring all the possibilities at the EOF level but it looks like it does not work at the EOF level. I also inspected the PostgresPlugin and found that the escape character is "|" instead of "\\" but still it doesn't work. If your data is not very large, you can do something like this.
create your own custom class for EOQualifierEvalution called RegExpEvaluation as follows: public static class RegExpEvaluation implements EOQualifierEvaluation { String key, pattern; public RegExpEvaluation(String key, String pattern) { this.key = key; this.pattern = pattern; } public boolean evaluateWithObject(Object obj) { if (obj instanceof NSKeyValueCoding) { Object value = ((NSKeyValueCoding) obj).valueForKey(key); return (value instanceof String) && ((String) value).matches(pattern); } return false; } } Fetch all the rows for the entity and using ERXArrayUtilities method as follows: EOFetchSpecification fs = new EOFetchSpecification(M_User.ENTITY_NAME, null, null); NSArray<ArticleDetail> eoz = session().defaultEditingContext().objectsWithFetchSpecification(fs); eoz = ERXArrayUtilities.filteredArrayWithQualifierEvaluation(eoz, new RegExpEvaluation(M_User.NAME, ".*\\*.*")); Hope this may help. Farrukh On 2010-11-09, at 8:33 PM, ISHIMOTO Ken wrote: > No > > On 2010/11/09, at 15:48, Farrukh Ijaz wrote: > >> Try using "*[*]*" and see it works? >> >> Farrukh >> >> Sent from my iPhone >> >> On 2010-11-09, at 5:34 PM, ISHIMOTO Ken <k...@ksroom.com> wrote: >> >>> Hi everyone, >>> >>> I am fighting with a Qualifier and my Question is "Is there any way for >>> query all Data with an in." >>> >>> DataSample : >>> >>> Mike >>> Chuck >>> Dav*id >>> Ken >>> >>> Like code bellow but the "*" is a Wildcard and won't work. >>> >>> EOQualifier qualifier = M_User.NAME.contains("*"); >>> >>> I would love to find any Record with "*". >>> >>> >>> Is there any trick or command to get all Objects with an "*" ? >>> >>> >>> Thank you >>> >>> -------------------------------------------------------- >>> K's ROOM (ISHIMOTO Ken) >>> -------------------------------------------------------- >>> [E-Mail] <k...@ksroom.com> >>> [iChat:] <ibase_...@mac.com> >>> [HP] http://www.ksroom.com/ >>> _____________________________________________________________________ >>> This e-mail has not been scanned for viruses because it was written on an >>> Mac, >>> and there are NO Viruses on an Apple Computer. >>> For further information visit http://www.apple.com >>> >>> >>> _______________________________________________ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com >>> >>> This email sent to farrukh.i...@fuegodigitalmedia.com >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com