Compare Revisions

Regular Expressions

Revision 47273:

Revision 47273 by mjhm on

Revision 287289:

Revision 287289 by sonujaiswar on

Title:
Regular Expressions
Regular Expressions
Slug:
JavaScript/Guide/Regular_Expressions
JavaScript/Guide/Regular_Expressions
Tags:
JavaScript, NeedsEditorialReview, NeedsBrowserCompatibility, "Regular Expressions"
JavaScript, NeedsEditorialReview, NeedsBrowserCompatibility, "Regular Expressions"
Content:

Revision 47273
Revision 287289
n8      Regular expressions are patterns used to match character con8      Regular expressions are patterns used to match character co
>mbinations in strings. In JavaScript, regular expressions are als>mbinations in strings. In JavaScript, regular expressions are als
>o objects. These patterns are used with the <a href="/en/JavaScri>o objects. These patterns are used with the <a href="/en/JavaScri
>pt/Reference/Global_Objects/RegExp/exec" title="exec"><code>exec<>pt/Reference/Global_Objects/RegExp/exec" title="exec"><code>exec<
>/code></a> and <a href="/en/JavaScript/Reference/Global_Objects/R>/code></a> and <a href="/en/JavaScript/Reference/Global_Objects/R
>egExp/test" title="test"><code>test</code></a> methods of <a href>egExp/test" title="test"><code>test</code></a> methods of <a href
>="/en/JavaScript/Reference/Global_Objects/RegExp" title="RegExp">>="/en/JavaScript/Reference/Global_Objects/RegExp" title="RegExp">
><code>RegExp</code></a>, and with the <a href="/en/JavaScript/Ref><code>RegExp</code></a>, and with the <a href="/en/JavaScript/Ref
>erence/Global_Objects/String/match" title="match"><code>match</co>erence/Global_Objects/String/match" title="match"><code>match</co
>de></a>, <a href="/en/JavaScript/Reference/Global_Objects/String/>de></a>, <a href="/en/JavaScript/Reference/Global_Objects/String/
>replace" title="en/JavaScript/Reference/Global_Objects/String/rep>replace" title="en/JavaScript/Reference/Global_Objects/String/rep
>lace"><code>replace</code></a>, <a href="/en/JavaScript/Reference>lace"><code>replace</code></a>, <a href="/en/JavaScript/Reference
>/Global_Objects/String/search" title="search"><code>search</code>>/Global_Objects/String/search" title="search"><code>search</code>
></a>, and <a href="/en/JavaScript/Reference/Global_Objects/String></a>, and <a href="/en/JavaScript/Reference/Global_Objects/String
>/split" title="split"><code>split</code></a> methods of <a href=">/split" title="split"><code>split</code></a> methods of <a href="
>/en/JavaScript/Reference/Global_Objects/String" title="String"><c>/en/JavaScript/Reference/Global_Objects/String" title="String"><c
>ode>String</code></a>. This chapter describes JavaScript regular >ode>String</code></a>. This chapter describes JavaScript regular 
>&nbsp; expressions.>expressions.
9    </p>
10    <h2>9    </p>
10    <h2 id="Creating_a_Regular_Expression">
n38    <h2>n38    <h2 id="Writing_a_Regular_Expression_Pattern">
n44    <h3>n44    <h3 id="Using_Simple_Patterns">
n50    <h3>n50    <h3 id="Using_Special_Characters">
n514    <h3>n514    <h3 id="Using_Parentheses">
n529    <h2>n529    <h2 id="Working_with_Regular_Expressions">
n751    <h3>n751    <h3 id="Using_Parenthesized_Substring_Matches">
n760    <h4>n760    <h4 id="Example_1">
n775    <h3>n775    <h3 id="Advanced_Searching_With_Flags">
n782      {{ Fx_minversion_note("3") }}n782      {{ Fx_minversion_note(3, "Support for the <code>y</code> fl
 >ag was added in Firefox 3. The <code>y</code> flag fails if the m
 >atch doesn\'t succeed at the current position in the target strin
 >g.") }}
n826    <h2>n826    <h2 id="Examples">
n832    <h3>n832    <h3 id="Changing_the_Order_in_an_Input_String">
t898    <h3>t898    <h3 id="Using_Special_Characters_to_Verify_Input">

Back to History