Beta

Examples:
  • Capture HTML title

    Read title tag from HTML source

    /<title>(.*)<\/title>/
  • Capture all meta tags

    Read all meta tags from HTML page

    /(<meta.*>)/
  • Match IP address

    Low tech match for IP addresses in a string

    /(\d+\.\d+\.\d+\.\d+)/
  • Replace tabs and new lines

    Specifically replace tabs, carriage returns and newlines from string

    /[\t\r\n]+/
  • Replace all whitespace

    Find and replace whitespace, like duplicate spaces, newlines and tabs by a single space

    /\s+/
  • Capture q= keyword from URL

    Capture the q= keyword from the CGI http_referer variable

    /[\/\?\&]q=([^&#]*)/
  • Read charset value

    Read charset value from meta tag

    /charset=([^\"; ]+)/
  • Table capture td cells

    Capture the td cell values into an array

    /<tr>\s*<td>(.*?)<\/td>\s*<td>(.*?)<\/td>\s*<td>(.*?)<\/td>\s*<\/tr>/ism
  • Get ID for Google Analytics

    Read the Web Property ID (UA-XXXXX-YY) from your Google Analytics tag

    /_gaq.push\(\['_setAccount', '(.*)'\]\);/

Share the knowledge your way

Please wait while checking