You are here: Re: Question to eregi Syntax « PHP « IT news, forums, messages
Re: Question to eregi Syntax

Posted by janbro on 07/07/05 18:43

thx, that's what I've figured. but looking for ^ with any
search engine won't give you anything useful.

thx
JaNbro

M. Sokolewicz schrieb:
> janbro wrote:
>
>> Hi List,
>> my research hasn't turned anything useful up.
>> Probably 'cause I don't have enough info.
>> I've been playing around with the ereg function.
>> What I was wondering is what is the ^ for like
>> in the below example?
>> ereg('[^[:space:]a-zA-Z0-9_.-]{1,}', $name)
>>
>> thx
>> janbro
>
> it denotes the "start of the string"
> This might help (although it's for PCRE syntax, the POSIX (ereg(i))
> syntax is very similair):
> http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
>
> This is the manpage for the POSIX syntax: (might be a bit harder to read
> if you're just starting)
> http://www.tin.org/bin/man.cgi?section=7&topic=regex

 

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

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