Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between ereg_replace() and eregi_replace()?

user-image
Question added by Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited
Date Posted: 2016/01/27
Mohammad Ahmad Siddiqui
by Mohammad Ahmad Siddiqui , Sr.Software Engineer , GSPANN Technologies Inc

ereg_replace()->  Regular expression match replace case sensetive.  eregi_replace()-> Regular expression match replace case insensetive.

Julfkar  Moh Umar
by Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited

eregi_replace() function is identical to ereg_replace() except that it ignores case distinction when matching alphabetic characters.

Aslesha Kadam
by Aslesha Kadam , Trainee Software Engineer , Logical DNA IT Sol. Pvt. Ltd.

ereg_replace() is case sensitive while eregi_replace() is not case sensitive.

Saleem Iqbal
by Saleem Iqbal , Technical Lead , IncisiveSoft pvt ltd

ereg_replace() is a case sensitive whereas eregi_replace() is not case sensitive.

 

e.g.

ereg_replace() - "Hello" - cannot treat as "hello" whereas

eregi_replace() - "Hello" - can be treat as "hello"

More Questions Like This