fork download
  1. Imports System
  2. Imports System.Text.RegularExpressions
  3.  
  4. Public Class Test
  5. Public Shared Sub Main()
  6. Dim urlStr As String
  7. urlStr = "Deep purples blanket / wrap. It is gorgeous" & _
  8. "in newborn photography. " & _
  9. "layer" & _
  10. "beneath the baby.....the possibilities are endless!" & _
  11. "You will get this prop! " & _
  12. "Gorgeous images using Lavender as a basket filler " & _
  13. "Photo by Benbrook, TX" & _
  14. "Imaging, Ontario" & _
  15. "http://w...content-available-to-author-only...o.com?t=3" & _
  16. " www.photo.com" & _
  17. " http://p...content-available-to-author-only...o.com" & _
  18. " https://p...content-available-to-author-only...o.com" & _
  19. " http://w...content-available-to-author-only...o.nl?t=1&url=5" & _
  20. "Photography Cameron, NC" & _
  21. "Thank you so much ladies!!" & _
  22. "The flower halos has beautiful items!" & _
  23. "http://w...content-available-to-author-only...y.com" & _
  24. "LIKE me on FACEBOOK for coupon codes, and to see my full product line!" & _
  25. "http://w...content-available-to-author-only...k.com/byme"
  26. Dim MyRegex As Regex = New Regex("(?:(http|https|ftp)://|www\.)[a-zA-Z0-9.-]+(\.[a-zA-Z]{2,3})?(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9._?,'/\\+&%$#=~-])*")
  27. Console.WriteLine(MyRegex.Replace(urlStr, ""))
  28. End Sub
  29. End Class
Success #stdin #stdout 0.09s 24504KB
stdin
Standard input is empty
stdout
Deep purples blanket / wrap. It is gorgeousin newborn photography. layerbeneath the baby.....the possibilities are endless!You will get this prop! Gorgeous images using Lavender as a basket filler Photo by Benbrook, TXImaging, Ontario     Cameron, NCThank you so much ladies!!The flower halos has beautiful items! me on FACEBOOK for coupon codes, and to see my full product line!