Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
  <p id="hello">Hello</p>
</body>
</html>
 
if (document.getElementById('hello')) {
  var input = "abcd_asdasdasd";
  var regexp = /^(a-z]$/;
  var matches = input.match(regexp);
  
  document.getElementById('hello').innerHTML = 
    "Input: " + input + 
    "<br/>Letters: " + matches[0]+ 
    "<br/>Digits: " + matches[1];
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers