You are here: Ereg « All PHP « IT news, forums, messages
Ereg

Posted by Harry on 11/23/05 16:19

Hi!

I'm trying to know if a substring or another string, using ereg.

ereg ($substring, $string)

My problem is that $substring contains characters like '[' and ']',
which are use for identifying classes in regular expressions, so I
obtain an error message every time I use it as in this example.

How can I solve it? Is there any option to make ereg not evaluate '['
and ']'. Or is there any other function that allows to compare two
substrings, saying if one is substring o another?

Regards!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация