Tag Archives: regular expression

regex: match all including new line

ShareI was looking for a way to match all characters plus new line and using “.” is not solely the answer because: The dot matches a single character, without caring what that character is. The only exception are newline characters. … Continue reading

Posted in developer's Guide, regex | Tagged , , , , , , | Leave a comment

regex: matching characters

ShareI wanted to note it down coz I always tend to forget these commonly used special sequences in regular expression. I hope it will also help you in one way or another. Matching Characters Most letters and characters will simply … Continue reading

Posted in regex | Tagged , , , , , , , , , | Leave a comment

regex: backreferences

ShareBackreferences Perhaps the most powerful element of the regular expression syntax, backreferences allow you to load the results of a matched pattern into a buffer and then reuse it later in the expression. In a previous example, we used two … Continue reading

Posted in regex | Tagged , , | Leave a comment