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:
Rate This Regex
User Review
( votes)Expression Flags
Flags | Description |
---|---|
i |
Ignore case sensitive. |
g |
Allows global search. |
m |
Allows multiline search. |