in reply to Re^2: Stripping links from field
in thread Stripping links from field

Your regex seems to not catch links, but HTML tags with attributes. How do you define a "link"?

Do you want to remove anything starting with http:// or https:// up to whitespace?

s{https?://\S+}{}g

Something else?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^4: Stripping links from field
by htmanning (Friar) on Oct 24, 2022 at 22:45 UTC
    Yes, anything with http:// or https:// or even www. to whitespace.