Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Regular Expression Exec

Description

The exec() method tests for a match in a string.

This method has the form:

RegExpObject.exec(string)
Parameter Description
string (required) The string to be searched

Examples

The following example shows the basic use of this method.

<script>
var str = "Hello JavaScript";

// look for "Java"
var pat = /Java/g;
var result = pat.exec(str);
document.write("Result: " + result); 
</script>

This produces the following result:

Browser Support

Firefox IE Chrome Opera Safari