This topic is locked

Regular expression

3/6/2014 8:40:37 AM
PHPRunner General questions
I
Ivan van Oosterhout author

Hello,
I have an Input box for the Name of a company,
People insert:
Power & People

Power | People

and more of these special characters which i dont know of,
Can somebody please explain how i can replace these &,|,/,? characters to text?

I dont understand Regular expression well,
Regards

Sergey Kornilov admin 3/6/2014

Here is an example of replacing all non-alphabetic characters with underscores:

http://stackoverflow.com/questions/745282/how-do-i-write-a-regex-in-php-to-remove-special-characters
Hope it helps.