On Sep 17, 2010, at 9:14 AM, Michael Hipp wrote:

> On 9/14/2010 2:23 PM, Michael Hipp wrote:
>> Is it possible to use a regexp in a like() clause? Or some other way to 
>> achieve
>> something similar?
> 
> Can anyone suggest an approach to search a field with a regexp?

if you were using Postgresql, you could use   somecolumn.op("~")(someregexp)

http://www.postgresql.org/docs/8.4/interactive/functions-matching.html#FUNCTIONS-POSIX-REGEXP

cant speak for other platforms though you'd have to consult their documentation.



> 
> Thanks,
> Michael
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/sqlalchemy?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to