You haven't provided any sample input and the expected output for that input, but based on your regex you appear to want to strip HTML tags. Do not use regular expressions to process HTML. You may simply be looking for HTML::Strip, or I provided some code to produce an abstract of a piece of text in the presence of HTML at Re: Creating an abstract (updated), which can be adapted to remove specific tags like <a>. My node Why a regex *really* isn't good enough for HTML and XML, even for "simple" tasks and the replies also show a lot of examples of parsing links from HTML, which can be adapted to remove them as well.
If instead you really do have simple plain text and you want to remove substrings that look like https?:// URLs, then of course there's a module for that too: Regexp::Common::URI::http.
In reply to Re: Stripping links from field
by haukex
in thread Stripping links from field
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |