I don't know why this is taking me such a long time to get!!!
All I need is a regex for a string. The string is a blog entry so needs to allow the characters . , _ - + = ! " : ( ) ' and that is it!
I have done this so far but this just throws up an error with anything!
Code: Select all
eregi ("^[A-Za-z0-9\.,_\-\+\=\!\":()\']+{2,200}$", $string)
All this regex is meant to do is stop anybody adding in code using the box and I thought it would be more simple than a str_replace.
Thanks in advance for any help.
I have tried reading everywhere on the net but all they show is finding areas of a string or verifying an email of a url