the following character class (in Perl)
[^\W_]
\W
is the same as [^\w]
More Related Contents:
- Turn Plain Text URLs into Active Links using PHP [closed]
- PHP validation/regex for URL
- Replace URLs in text with HTML links
- Remove all special characters from a string [duplicate]
- How to replace text URLs and exclude URLs in HTML tags?
- Extract URL from string
- Need a good regex to convert URLs to links but leave existing links alone
- Using PHP Replace SPACES in URLS with %20
- PHP – Add link to a URL in a string
- PHP regex for validating a URL
- Replace all characters that aren’t letters and numbers with a hyphen [duplicate]
- Detecting a url using preg_match? without http:// in the string
- How do I send to the current page? [closed]
- How to get “v.3.1.2” in string by regex php [duplicate]
- Replace preg_replace() e modifier with preg_replace_callback
- Is there a PHP function that can escape regex patterns before they are applied?
- How to make dot match newline characters using regular expressions
- How to split a long string without breaking words?
- How to capitalize first letter of first word in a sentence?
- How do I extract query parameters from a URL string in PHP?
- Change WordPress Admin URL
- Regex to detect invalid UTF-8 string
- Get parts of URL in PHP
- Change foreign characters to their roman equivalent
- Remove domain extension
- URL Decoding in PHP
- get url content PHP [duplicate]
- PHP – detect whitespace between strings
- How do I apply URL normalization rules in PHP?
- PHP: Escape RegEx pattern to prevent being applied?