javascript String match( )

match( ) NN 4 IE 4 ECMA 3  

match(regexpression)

  

Returns an array of strings within the current string that match the regular expression passed as a parameter. For example, if you pass a regular expression that specifies any five-digit number, the returned value of the match( ) method would be an array of all five-digit numbers (as strings) in the main string. Properties of the RegExp static object are influenced by this method's operation.

 
Parameters
 
  • A regular expression object. See the regular expression object for the syntax to create a regular expression object.
 
Returned Value

An array of strings.


1788,Nickname,Homepage or email,Comments here,Add comment