Caret problem

This is a discussion on Caret problem within the MySQL Database forums, part of the Database Forums category; I needed to locate rows that contained /[^\d] Whilst LIKE '%/[^%' worked fine LIKE '%/[^\d%' ESCAPE '@' or even '%^\T%' found nothing. ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-13-2007
Paul Lautman
 
Posts: n/a
Default Caret problem

I needed to locate rows that contained
/[^\d]

Whilst
LIKE '%/[^%'
worked fine
LIKE '%/[^\d%' ESCAPE '@'
or even '%^\T%'
found nothing.
I tried escaping various parts, but if I had a character following the ^,
nothing was found.

Any ideas?


Reply With Quote
  #2 (permalink)  
Old 05-14-2007
lark
 
Posts: n/a
Default Re: Caret problem

Paul Lautman wrote:
> I needed to locate rows that contained
> /[^\d]
>
> Whilst
> LIKE '%/[^%'
> worked fine
> LIKE '%/[^\d%' ESCAPE '@'
> or even '%^\T%'
> found nothing.
> I tried escaping various parts, but if I had a character following the ^,
> nothing was found.
>
> Any ideas?
>
>

did you try lower case t in '%^\t%'

also try using back ticks ` to see if you notice any difference. it's
the character below ~
Reply With Quote
  #3 (permalink)  
Old 05-14-2007
Captain Paralytic
 
Posts: n/a
Default Re: Caret problem

On 14 May, 14:32, lark <ham...@sbcglobal.net> wrote:
> Paul Lautman wrote:
> > I needed to locate rows that contained
> > /[^\d]

>
> > Whilst
> > LIKE '%/[^%'
> > worked fine
> > LIKE '%/[^\d%' ESCAPE '@'
> > or even '%^\T%'
> > found nothing.
> > I tried escaping various parts, but if I had a character following the ^,
> > nothing was found.

>
> > Any ideas?

>

| did you try lower case t in '%^\t%'
Why woluld I want a ower case t?
>

| also try using back ticks ` to see if you notice any difference.
it's
| the character below ~
On your keyboard it may be but not on mine.

And I thought that back ticks were reserved for quoting identifiers,
so why would I want to quote a literal with backticks?

Please explain

Reply With Quote
  #4 (permalink)  
Old 05-14-2007
subtenante
 
Posts: n/a
Default Re: Caret problem

On Sun, 13 May 2007 22:23:14 +0100, "Paul Lautman"
<paul.lautman@btinternet.com> wrote:

>I needed to locate rows that contained
>/[^\d]
>
>Whilst
>LIKE '%/[^%'
>worked fine
>LIKE '%/[^\d%' ESCAPE '@'
>or even '%^\T%'
>found nothing.
>I tried escaping various parts, but if I had a character following the ^,
>nothing was found.
>
>Any ideas?
>


LIKE '%/[^\\\\d]%' ?
Reply With Quote
  #5 (permalink)  
Old 05-14-2007
Captain Paralytic
 
Posts: n/a
Default Re: Caret problem

On 14 May, 15:43, subtenante <zzsubtenant...@gmail.com> wrote:
> On Sun, 13 May 2007 22:23:14 +0100, "Paul Lautman"
>
> <paul.laut...@btinternet.com> wrote:
> >I needed to locate rows that contained
> >/[^\d]

>
> >Whilst
> >LIKE '%/[^%'
> >worked fine
> >LIKE '%/[^\d%' ESCAPE '@'
> >or even '%^\T%'
> >found nothing.
> >I tried escaping various parts, but if I had a character following the ^,
> >nothing was found.

>
> >Any ideas?

>
> LIKE '%/[^\\\\d]%' ?


I'll try that later and let you know.

Reply With Quote
  #6 (permalink)  
Old 05-14-2007
lark
 
Posts: n/a
Default Re: Caret problem

Captain Paralytic wrote:
> On 14 May, 14:32, lark <ham...@sbcglobal.net> wrote:
>> Paul Lautman wrote:
>>> I needed to locate rows that contained
>>> /[^\d]
>>> Whilst
>>> LIKE '%/[^%'
>>> worked fine
>>> LIKE '%/[^\d%' ESCAPE '@'
>>> or even '%^\T%'
>>> found nothing.
>>> I tried escaping various parts, but if I had a character following the ^,
>>> nothing was found.
>>> Any ideas?

> | did you try lower case t in '%^\t%'
> Why woluld I want a ower case t?
> | also try using back ticks ` to see if you notice any difference.
> it's
> | the character below ~
> On your keyboard it may be but not on mine.
>
> And I thought that back ticks were reserved for quoting identifiers,
> so why would I want to quote a literal with backticks?
>
> Please explain
>

you're right! back ticks are only for quoting identifiers!

--
lark -- hamzee@sbcdeglobalspam.net
To reply to me directly, delete "despam".
Reply With Quote
  #7 (permalink)  
Old 05-25-2007
subtenante
 
Posts: n/a
Default Re: Caret problem

On 14 May 2007 07:50:34 -0700, Captain Paralytic
<paul_lautman@yahoo.com> wrote:

>> >Any ideas?

>>
>> LIKE '%/[^\\\\d]%' ?

>
>I'll try that later and let you know.


I'm curious. Did it work ?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0