Tom Lane writes: > Exercise for the student: if you need to match a literal backslash > in a LIKE pattern, how many backslashes do you have to write in your > query? I like how Python handles this: You prefix the text literal with an `r' (as in "raw") and the backslashes are not special. Maybe we could offer that as well. blah ~ r'.+\..+' -- Peter Eisentraut Sernanders väg 10:115 [EMAIL PROTECTED] 75262 Uppsala http://yi.org/peter-e/ Sweden
- [SQL] Search for underscore w/ LIKE brianb-pgsql
- Re: [SQL] Search for underscore w/ LIKE Tom Lane
- Re: [SQL] Search for underscore w/ LIKE Tom Lane
- Re: [SQL] Search for underscore w/ LIKE Bruce Momjian
- Peter Eisentraut