WhileIf Blog

Programming, Computers and Stuff

Primary menu

Skip to primary content
Skip to secondary content
  • Home
  • WhatsMyIP
  • About

Monthly Archives: August 2010

REGEX – Find unclosed img tags

Posted on August 31, 2010 by admin — No Comments ↓

As you probably know, the xhtml standard requires all tags to be properly closed. This regular expression will search for unclosed img tags. It could be easily modified to grab any other unclosed html tags. view source

Posted in Code, Software, Tips | Tagged code, programming, Regular Expressions | Leave a reply

REGEX – Validate an URL

Posted on August 30, 2010 by admin — No Comments ↓

Is a particular url valid?  The following regexp will let you know.

Posted in Code, PHP, Tips | Tagged code, programming, Regular Expressions | Leave a reply

REGEX – Find all CSS attributes

Posted on August 29, 2010 by admin — No Comments ↓

This regexp will find CSS attributes, such as background:red; or padding-left:25px;.

Posted in Code, Software, Tips | Tagged code, programming, Regular Expressions | Leave a reply

REGEX – Test if a password is strong

Posted on August 27, 2010 by admin — 4 Comments ↓

Weak passwords are one of the quickest ways to get hacked. The following regexp will make sure that: * Passwords will contain at least (1) upper case letter * Passwords will contain at least (1) lower case letter * Passwords Continue reading →

Posted in Code, Software, Tips | Tagged code, programming, Regular Expressions | 4 Replies

TIP – Prevent js and css files from being cached

Posted on August 26, 2010 by admin — No Comments ↓

By default, external files such as javascript and css are cached by the browser. If you want to prevent this from caching, simply use this easy tip: The result will look like this:

Posted in Code, Software, Tips | Tagged code, programming, software | Leave a reply

Post navigation

← Older posts

Popular Posts

  • PHP Tip - Use Single Quotes when Possible
  • Jquery - Get the mouse cursor x and y axis
  • PHP - Convert url to TinyURL
  • Wordpress - Add Google Analytics

Search By Tags!

analytics Anonymous apache benchmark c++ closures code cpu css dom exceptions fedora firefox funny gimp htaccess htacess html images install javascript jpeg jquery kubuntu linux linux mint Maverick Meerkat memcached mkv mysql mysqli netbeans nfs OpenSSL Operating Systems PHP pop3 precise pangolin programmers programming quality quotes recursion Regular Expressions security server software stuff subtitles suse telnet tmpfs tools traits tweaks ubuntu ubuntu server unix Virtualbox vlc web2.0 web marketing work worpress yui zip

Blogroll

  • Android Developers Blog
  • Cats Who Code
  • Developer Blog
  • Planet MySql
  • Planet PHP
  • The Code Project
  • WordPress Planet
Copyright © 2013 WhileIf Blog . All Rights Reserved.
Powered by WordPress | Theme: Catch Box