Method for identifying .onion links in text?

Started by teasebanksy, 03-23-2019

1405
1
Method for identifying .onion links in text?
  03-23-2019, 04:26 AM
#1
how can I identify .onion links in a text bearing in mind they can come in a variety of way;

hfajlhfjkdsflkdsja.onion
https://hfajlhfjkdsflkdsja.onion
https://www.hfajlhfjkdsflkdsja.onion

I'm thinking of regex but (.*?.onion) would return the whole paragraph where the URL Link is buried in

  01-22-2020, 10:36 AM
#2
[\S]+\.onion
https://regex101.com/r/s3MICz/1

« Next Oldest | Next Newest »




1 Guest(s)