You are here: Re: help understanding an ereg expression « PHP Programming Language « IT news, forums, messages
Re: help understanding an ereg expression

Posted by Paul E Collins on 10/13/44 11:39

"Jim Michaels" <jmichae3@nospam.yahoo.com> wrote:

> [...]
> > > Why does $string = 'te\st' yield a match? The
> > > ereg expression doesn't have a \\ in it...
> > the \ is escaping the s, so is invisible to the regular
> > expression. To have an \ in the string, you'd need
> > to see \\
>
> That's not true. \s is whitespace. tabs or spaces.

"\s" means whitespace in a regular expression, but not in the string
being matched against.

P.

 

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

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