You are here: Re: Need help with REGEXP « All PHP « IT news, forums, messages
Re: Need help with REGEXP

Posted by Steve on 11/29/05 12:18

X-No-Archive: yes


> Long time lurker, my first post.

....and your first post is off-topic! Ah well...

> I don't want to do a check in php, but in javascript.

And if the user has javascript turned off, or creates their own form?
You will want to check at the server too.

> if I enter a period in "notAllowed" - it assumes "any character" - but i want to check for ".com" ".net" etc...

> notAllowed=['http', 'www', 'ww', '://', '.com', '.co.uk', '.net', '.biz', 'dot com', 'dotcom', 'dotnet', '@'];

Any Javascript reference would tell you, metacharacters like '.' are
escaped with a backslash thus: '\.co\.uk' so tey are treated as literal
characters.

---
Steve

 

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

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