Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
task: seek record that contains a specific IP --- I have tried:
select * from table where field regexp '^' select * from table where field regexp '10\.100\.1\.1' select * from table where field regexp '10\.100\.1\.1[[:>:]]' select * from table where field regexp '[[:<:]]10\.100\.1\.1[[:>:]]'
and so on . . . all same result - many matches where even the first six character do not match - help!
mysql> select d07 from service where d07 regexp '^'; +------------------------------------------------+ | d07 | +------------------------------------------------+ | on at 2011-06-20 02:12:02 | | at 2009-05-12 05:12:47 | | at 2009-03-26 16:00:37 | | at 10282300 | | on at 2011-04-25 02:16:27 | | off since 2012-02-18 18:52:04 | . . .
here is the behavior I expected: mysql> select d07 from service where d07 regexp ''; +-----------------------------------------+ | d07 | +-----------------------------------------+ | on at 2011-05-24 02:08:49 | | on at 2010-04-24 15:00:04 | +-----------------------------------------+ 2 rows in set (0.05 sec) could it be that there is something magic about

In reply to (OT) mysql regexp unwanted matches for specific IP by kp2a

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    [Corion]: So I guess I will simply implement the linear scan first and wait with more fancy stuff until it becomes a problem
    [karlgoethebier]: Lady_Aleena: ++ for "The Man Crusher Everyday"
    [karlgoethebier]: this mad my day
    [karlgoethebier]: no typo
    [marioroy]: At the Fransiscan monastery, got stuck up high in a tree from pruning and the chainsaw with large branch fell and broke the latter, but not me fortunately. Was stuck there for a while until a firetruck came by.
    [Corion]: marioroy: So you live dangerously ...
    [Lady_Aleena]: s/latter/ladder/; # ? marioroy
    [karlgoethebier]: marioroy: Praise the Lord
    [marioroy]: Well, that's why there must be angels around, invisible or not.
    [marioroy]: Lady_Aleena yes, ladder.

    How do I use this? | Other CB clients
    Other Users?
    Others musing on the Monastery: (12)
    As of 2017-05-29 08:33 GMT
    Find Nodes?
      Voting Booth?