Tag: regex
I find a need to manage the hyper links in wordpress in a centeralise place. As i have many dofollow links that are no longer valid (accessible). Making those …
Given a string e.g. “domain.com” we want to find out if it is a valid domain string name. We can do this in PHP via Regx aka Regular Expression. …
Let’s say we want to put a REL=NOFOLLOW on all external links in your wordpress posts/pages, we can add a filter to parse the content using the regular expression …
IP Addresses consist of two kinds. The IPv4 and IPv6. The IPv4 is 32-bit that contains 4 bytes. For example, X.Y.Z.U where four digits (0 to 255) are separated …
Why are catching any general exceptions bad? They are just to suppress run time errors which may cause some more serious and worse errors later. try { } catch …