|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
I need to strip out any links people submit in their text. This includes links with the full <a href="link"> syntax, links that use the full "http://link" syntax, links that may be written as "www.link.com" and links written to try and get around the system such as "www . link" or "wx3.linkDOTcom" etc.
Can anybody give me a couple of succint regexps to do this? Thanks in advance for any help! |
|
#2
|
|||
|
|||
|
Take a look at the HTML::Parse (or HTML::Parser) module.
You can find them by doing a search at: http://search.cpan.org They should give you some powerful tools that will help you strip out anchors. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > RegExp to strip out links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|