Tag: regular expressions
Easily Write and Understand Regular Expressions with Regex101
Regular expressions or regexes—custom formulas for complex string pattern matching—are very useful, but also extremely opaque if you’re not used to reading or writing them. Just to show you how deep the nightmare goes, here’s the officially approved PHP regex for evaluating whether a string is a valid email address:
Getting Rid of Google Analytics Spam Languages
Google Analytics spam has been a common problem for a while, but it seems to me that in the last few months it’s gotten markedly worse. Whether that’s just my perception or the reality of the situation, I’m not sure. What I am sure of is that it is annoying that and the latest place the spammers are identifying themselves as flooding you with bad data is in the “Language” that Google Analytics reports for them. We noticed the issue a few months back here on WPShout, but hadn’t gotten around to finding the solution.