• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Text Content Filter For Email and Web Addresses

 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a servlet issue so moved to Java in General.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic