Reputation: 1546
I want to capture every letter except the first letter in the string.
Example string: The cat in the hat.
I know to capture the first letter is /[^]/
so I would want something like /not [^]/
Upvotes: 2
Views: 2009
Reputation: 70722
You can utilize a capture group with a basic regular expression.
^.(.*)
The capture group stores the match result ignoring the first character in the string.
Upvotes: 1