You are here: Re: match any character but « PHP Programming Language « IT news, forums, messages
Re: match any character but

Posted by Jon Slaughter on 05/05/07 09:50

"Michael Fesser" <netizen@gmx.de> wrote in message
news:9bko33pahg36eddgsc8pmoodd6qeis75sn@4ax.com...
> .oO(Jon Slaughter)
>
>>Can I use any reg exp(mainly for mod rewrite) where I can match any
>>character but a fixed list?
>
> Use a character class with a leading ^ to negate it:
>
> [^/]
>
> Matches anything that is not a slash.
>

Ok. Duh. wasn't putting 2 and 2 together. [^/] should match anything but a
slash. lol.

Thanks,
Jon

 

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

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