javascript String search( )

search( )NN 4 IE 4 ECMA 3  

search(regexpression)

  

Returns the zero-based indexed value of the first character in the current string that matches the pattern of the regexpression parameter. This method is similar to the indexOf( ) method, but the search is performed with a regular expression rather than a straight string.

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

Integer.


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