Jump to content

Please help with eregi "AND"


sastro

Recommended Posts

I would recommend ditching ereg and start learning preg (pcred) instead, as ereg (part of POSIX) is depreciated as of the current stable version (php 5.3) and will no longer be included within the core as of php 6.

 

As for your string, could you show a sample and explain (without regex) what you are trying to match? Otherwise, I'm left making assumptions.

There's no manual available for pcred()  :(

Is my problem can be resolve with preg_match?

 

Oops.. that will teach me not to post when tired.  :sleeping:

This is what I meant (in line with what Mike tried linking to (but got a 404 Not Found): pcre. Sorry about that.

 

Additional, you can get started on preg by reading these:

 

http://www.regular-expressions.info/

http://weblogtoolscollection.com/regex/regex.php

http://www.phpfreaks.com/forums/index.php/topic,127902.0.html

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.