Semicolon & Sons
X
About
Contact & Support
Code Diary
Episodes
Blog
Subscribe
Sign in
Semicolon & Sons
About
Screencasts
Code Diary
Blog
Contact & Support
Subscribe
Sign In
Regex Code Diary Entries
This is part of the Semicolon&Sons
Code Diary
- consisting of lessons learned on the job.
Always use boundaries for exact matches
Negative lookaheads might not work due to prior greediness
Use double backslashes when converting strings to regex
Without anchors your regex will not be limited to a fixed number of characters