WordPress is often viewed as being an insecure platform, but the truth is that it is highly secure and comes equipped with features that allow third-party plugins to also be…
The following regular expression (regex) will select a table from HTML content. <table.*>(.|\n)*?<\/table> What about case sensitivity? e.g. <TABLE> Use the /i (insensitive) flag Want to select more than one…
I recently had a large JavaScript array - a complex polygon of latitude and longitude coordinates. The file was undesirably large (about 32 MB) which seemed to stem from the…
By default WordPress will use a full absolute URL for resources such as images, scripts and style sheets. If the resource is loaded correctly WordPress will automatically use the scheme…
Gravity Forms uses a jQuery character count plugin called 'jQuery Textarea Characters Counter Plugin v 2.0' to handle the character counting and associated functions for form fields. The plugin lives…
I recently needed to re-do my image thumbnails inside all WordPress posts. I decided to use phpMyAdmin to run a SQL query to list all posts with thumbnails, then individually…
The following example shows how to use a regular expression (a regex) to search for information in an SQL database. The regular expression used looks for images which end with…
As a database administrator one of the important data health checks you can perform is checking that email addresses being stored are valid. It is near impossible to programmatically define…
XML Notepad 2007 is a free XML Editor provided by Microsoft. Features include: Tree View synchronized with Node Text View for quick editing of node names and values. Incremental search…