Trending
Heat Index
Python
Most Recent
 
Read More
February 11, 2018

Damn Regex isn’t hard I just cant remember it.

I have learned and forgotten regex about 30 times now. The following are my notes while I learn again so I can refer back to it.

Basic Regex Matching

To match a string you can just type in the actual string you want to match so to match

Cat you can just type in cat as the regex and it will match

\d matches any digit from 1 to 9. the preceding slash is the escape symbol in regex

The . is a wildcard and matches anything including whitespace so to match three chars and a 4th char which is a full stop ie “htb.” you can use …\. escaping the last one. this matches any three characters and then a .

inside square brackets you can match [...]

10
Latest Headlines
Try a different filter
Trending Topics
Uncategorized
valve
wordpress
Web
Python
Top Stories
Try a different filter
Right Now
Try a different filter
Top Five
Heat Index
 
1
Must Read:How to forward emails to Freshdesk correctly in Office Exchange 365
 
2
How to configure VBSSO to work correctly with user roles in WordPress
 
3
Hass.io Homeassistant Rfxtrx setup for LightwaveRF Devices
 
4
vBulletin to WordPress bbpress / buddypress – Part 2
 
5
vBulletin to WordPress bbpress / buddypress – Part 1