Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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 '^10.100.1.1' 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 '^10.100.1.1'; +------------------------------------------------+ | d07 | +------------------------------------------------+ | 10.100.101.186 on at 2011-06-20 02:12:02 | | 10.100.101.188 at 2009-05-12 05:12:47 | | 10.100.101.251 at 2009-03-26 16:00:37 | | 10.100.101.182 at 10282300 | | 10.100.101.70 on at 2011-04-25 02:16:27 | | 10.100.101.59 off since 2012-02-18 18:52:04 | . . .
here is the behavior I expected: mysql> select d07 from service where d07 regexp '10.100.101.95'; +-----------------------------------------+ | d07 | +-----------------------------------------+ | 10.100.101.95 on at 2011-05-24 02:08:49 | | 10.100.101.95 on at 2010-04-24 15:00:04 | +-----------------------------------------+ 2 rows in set (0.05 sec) could it be that there is something magic about 10.100.1.1?

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

Title:
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!
  • 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
  • Outside of code tags, you may need to use entities for some characters:
            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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others perusing the Monastery: (8)
    As of 2014-08-23 16:27 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (174 votes), past polls