On Tuesday, March 31, 2020 at 3:38:34 AM UTC-7, Vlad wrote: > > Is there any example / doc on how to use regexp? It's just mentioned in > the book, but no details and no samples. > > It depends on your db backend and the adapter. For sqlite and the inbox-adapter, there's a python file that wraps calls to the standard python library, which works when the sq;ite engine is local (as it usually is). For not-so-lite DBs, I haven't had to look yet. /dps
On Tue, Mar 31, 2020, 3:35 AM Val K <valq...@gmail.com <javascript:>> wrote: > >> re.sub() is invoked at python level not at db level. You should use >> db.field.regexp(pattern) >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/gZfpGe7EcSI/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> web...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/web2py/9479f17a-0eae-449f-9d6c-b2b8bd974a3f%40googlegroups.com >> . >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/f5695a19-0af3-42ad-ae03-cb8b3c2b12bf%40googlegroups.com.