A useful Regex that matches the first X (30 in the example below) characters (including space) in a sentence.
/^([\s\S]){1,20}([\s\.])/
Matches:
- A useful Regext that matches the first X (30 in the example below) characters (including space) in a sentence.
See Also:
- Regex To Match A Full Sentence
- Regex To Match Last X Characters In A String
- Regex To Match The Last Occurrence Of Characters In A String
- Regex To Match Any Numbers But The Last X Digits