Reputation: 3978
If I have an arbitrary text (SVN diff output in this case), how do I match lines that have a first character of '+' given that + has special meaning in regex's?
Upvotes: 0
Views: 209
Reputation: 3063
Here you go!
/^(\+)/
The \ character escapes the +, removing it's special meaning.
Upvotes: 2