Fetch Specifications and Regular Expressions

Jeff Dunnett <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hello Everyone,

I have been searching through my various WebObjects books, the  
archives for this list and the web for a solution to my problem but I  
can't find it.

I have a fetch specification:

((contest.contestEvent like $contest) and (processed = $processed)  
and (schoolNumber like $schoolNumber))

For the value of $schoolNumber I want to pass in a regular expression  
like ^05(69|70|71|72).  For some reason when try to fetch objects  
(after having passed in that string) it returns no objects (even  
though I know there are some in the test database.  I have tried a  
few variations on the regex such as ^05(69|70|71|72)????? etc.  Can  
anyone point out what i am doing wrong?  Can I even use regular  
expressions with a fetch specification?

Regards,
Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.