Rss Feed
  1. To make the browser use the correct encoding, add an HTTP header like this:

    header("Content-Type: text/plain; charset=ISO-8859-1");

    or put the encoding in a meta tag:

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

  2. Alphanumeric, dash and underscore but no spaces regular expression check Javascript


    var regexp = /^[a-zA-Z0-9-_]+$/;
    var check = "checkme";
    if (check.search(regexp) == -1)
        { alert('invalid'); }
    else
        { alert('valid'); }


    Only Alphanumeric  regular expression check Javascript


    var regexp = /^[a-zA-Z0-9]+$/;
    var check = "checkme";
    if (check.search(regexp) == -1)
        { alert('invalid'); }
    else
        { alert('valid'); }