php MySQL and patterns

mysql , php Canada
  • 15 years ago

    alright so I'm using php and MySQL.
    In php I'm doing some pattern matching
    eregi($pattern,$message);


    so my pattern may look something like wa[.+]er or whatever.  


    The thing is I want to hold the list of patterns in my MySQL database.
    Anyone know what needs to be done to get $pattern being my $result['field'] to be seen as a pattern and not just a string.


    Or should it work and I must be coding stuff wrong.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup