aspose file tools*
The moose likes Servlets and the fly likes Text Content Filter For Email and Web Addresses Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Text Content Filter For Email and Web Addresses" Watch "Text Content Filter For Email and Web Addresses" New topic
Author

Text Content Filter For Email and Web Addresses

Vikas Aggarwal
Ranch Hand

Joined: Jun 22, 2001
Posts: 140
Hi,

I am looking for a utility to to parse the content posted in a text area or text box and filter out email addresses or web site names. If there is any filter or utility available, I would appreciate if you tell me about it.

Thanks.

Regards,
Vikas Aggarwal
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
Any reason looking for utility to do this? All you need to do is
- Create a Filter and configure it in web.xml
- In the doFilter() method iterate over request parameters
- Use regular expression to find the email and web url pattern

I am not sure you have in-built utility to do this.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61001
    
  65

Not a servlet issue so moved to Java in General.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Text Content Filter For Email and Web Addresses