Regular Expressions 101

Remove Special Ascii Characters from unicode String

Open Workspace
  • PCRE (Legacy)
  • Match
12

Regular Expression

/
[^\p{L}\s._0-9\-]+
/
g

Description

By Using this string you can just remove ascii special characters from a unicode string characters like ♥♥♥♥ ▓▒ and other non unicode letters.

Submitted by Hummad Hassan