Daily Archives: March 9, 2010

regex cheat sheet

Share Special Sequences \w - Any “word” character (a-z 0-9 _) \W - Any non “word” character \s - Whitespace (space, tab CRLF) \S - Any non whitepsace character \d - Digits (0-9) \D - Any non digit character . - (Period) – Any character except newline … Continue reading

Posted in regex | Tagged , , | 1 Comment

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