Jump to content

Take out emails and web addresses from form information


steveclondon

Recommended Posts

Hi,

I want to automatically strip out any email addresses and website links that users may enter into a form. Does anyone know of any good classes to do this, as  I am sure I would just be reinventing the wheel if I start making the code for this.

If not any ideas of the best way to go about it will be of great help. I would imagine that I would need to search for the @ symbol and www.  then count the start of the word and end of the word and replace it with a space. I know how to tackle it that way using string replace etc but if there is a quicker or better way please let me know. Would preffer a class that already does this though.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.