What is Punct in RegEx? How to Match All Punctuation Marks in Regular Expressions

In regular expressions, “punct” means punctuation marks. It is all non-word and non-space characters. “Punct” is a predefined character class in regular expressions, and you can use it in any regex flavor that supports it. The Punct character class is denoted by p{Punct} or simply p{P}. It matches any punctuation

Powered by WPeMatico