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

Sorry. I've updated my post. I'm trying to strip any URL but I posted a Google Drive URL as an example.

Replies are listed 'Best First'.
Re^3: Stripping links from field
by choroba (Cardinal) on Oct 24, 2022 at 22:35 UTC
    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]
      Yes, anything with http:// or https:// or even www. to whitespace.