On 13 Jul 2005, at 15:12, Bob Sawyer wrote:
> I think the placement of the caret is wrong. Try:
>
> if (ereg("^[a-zA-Z0-9\-\']", $text)) {
Thanks Bob,
That didnt work unfortunately, but after some further experimenting i
managed to get it working by removing the escapes & switching the
apostrophe & hyphen round - although im slightly confused as to why
this is so....
if (ereg("[^a-z A-Z0-9'-]", $text)) {
cheers,
Riquez
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/