Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla

Compare Revisions

String.prototype.search()

Change Revisions

Revision 63760:

Revision 63760 by Sheppy on

Revision 63761:

Revision 63761 by AmaanC on

Title:
search
search
Slug:
JavaScript/Reference/Global_Objects/String/search
JavaScript/Reference/Global_Objects/String/search
Tags:
"Regular Expressions", "String Methods"
"Regular Expressions", "String Methods"
Content:

Revision 63760
Revision 63761
n7    <h3 name="Summary">n7    <h3 id="Summary" name="Summary">
n40    <h3 name="Syntax">n40    <h3 id="Syntax" name="Syntax">
n46    <h3 name="Parameters">n46    <h3 id="Parameters" name="Parameters">
n51        <code>regexp</code>&nbsp;n51        <code>regexp</code>
n57    <h3 name="Description">n57    <h3 id="Description" name="Description">
n74    <h3 name="Examples">n74    <h3 id="Examples" name="Examples">
n77    <h4 name="Example:_Using_search">n77    <h4 id="Example:_Using_search" name="Example:_Using_search">
n85   if (str.search(re) != -1)n85   if (str.search(re) != -1){
nn87   }
87   else88   else{
tt90   }

Back to History