fork download
  1. Imports System.Text.RegularExpressions
  2.  
  3. Module Module1
  4. Sub Main()
  5. ' Input string.
  6. Dim regex As Regex = New Regex("[a-zA-Z0-9]|(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])")
  7. Dim matches As MatchCollection = regex.Matches("Hello World 1 2 3 4 5 😀😀©🔀 !@#$@#%$#$^#$®^$$ sdfdsa;fjl nas;lkf asdfklasd;f asdf as;dlfjads ;lfkj ;lkjasd f;ladsjf ;lkj;l sadf ;lkasdfl akdsf")
  8. Dim cleanText as new System.Text.StringBuilder()
  9. For Each m As Match In matches
  10. For Each c As Capture In m.Captures
  11. cleanText.Append(c.Value)
  12. Next
  13. Next
  14. Console.WriteLine(cleanText.ToString())
  15. End Sub
  16. End Module
  17.  
  18.  
  19.  
  20.  
Success #stdin #stdout 0.07s 31788KB
stdin
Standard input is empty
stdout
HelloWorld12345😀😀©ðŸ”€®sdfdsafjlnaslkfasdfklasdfasdfasdlfjadslfkjlkjasdfladsjflkjlsadflkasdflakdsf