﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="book" content="ActionScript&nbsp;3.0&nbsp;Language&nbsp;and&nbsp;Components&nbsp;Reference"><link rel="stylesheet" href="style.css" type="text/css" media="screen"><link rel="stylesheet" href="print.css" type="text/css" media="print"><link rel="stylesheet" href="override.css" type="text/css"><meta name="keywords" content="RegExp,globalClassifier.RegExp,-Infinity,CASEINSENSITIVE,DESCENDING,E,Infinity,LN10,LN2,LOG10E,LOG2E,MAX_VALUE,MAX_VALUE,MAX_VALUE,MIN_VALUE,MIN_VALUE,MIN_VALUE,NEGATIVE_INFINITY,NUMERIC,NaN,NaN,PI,POSITIVE_INFINITY,RETURNINDEXEDARRAY,SQRT1_2,SQRT2,UNIQUESORT,callee,constructor,date,dateUTC,day,dayUTC,dotall,errorID,extended,fixed,fullYear,fullYearUTC,global,hours,hoursUTC,ignoreCase,ignoreComments,ignoreProcessingInstructions,ignoreWhitespace,lastIndex,length,length,length,length,localName,message,milliseconds,millisecondsUTC,minutes,minutesUTC,month,monthUTC,multiline,name,prefix,prettyIndent,prettyPrinting,prototype,seconds,secondsUTC,source,time,timezoneOffset,undefined,uri,uri,Array,Boolean,Number,Object,String,UTC,Vector,XML,XMLList,abs,acos,addNamespace,appendChild,apply,asin,atan2,atan,attribute,attribute,attributes,attributes,call,ceil,charAt,charCodeAt,child,childIndex,child,children,children,comments,comments,concat,concat,concat,contains,contains,copy,copy,cos,decodeURIComponent,decodeURI,defaultSettings,descendants,descendants,elements,elements,encodeURIComponent,encodeURI,escape,every,every,exec,exp,filter,filter,floor,forEach,forEach,fromCharCode,getDate,getDay,getFullYear,getHours,getMilliseconds,getMinutes,getMonth,getSeconds,getStackTrace,getTime,getTimezoneOffset,getUTCDate,getUTCDay,getUTCFullYear,getUTCHours,getUTCMilliseconds,getUTCMinutes,getUTCMonth,getUTCSeconds,hasComplexContent,hasComplexContent,hasOwnProperty,hasOwnProperty,hasOwnProperty,hasSimpleContent,hasSimpleContent,inScopeNamespaces,indexOf,indexOf,indexOf,insertChildAfter,insertChildBefore,int,isFinite,isNaN,isPrototypeOf,isXMLName,join,join,lastIndexOf,lastIndexOf,lastIndexOf,length,length,localName,localeCompare,log,map,map,match,max,min,name,namespaceDeclarations,namespace,nodeKind,normalize,normalize,parent,parent,parse,parseFloat,parseInt,pop,pop,pow,prependChild,processingInstructions,processingInstructions,propertyIsEnumerable,propertyIsEnumerable,propertyIsEnumerable,push,push,random,removeNamespace,replace,replace,reverse,reverse,round,search,setChildren,setDate,setFullYear,setHours,setLocalName,setMilliseconds,setMinutes,setMonth,setName,setNamespace,setPropertyIsEnumerable,setSeconds,setSettings,setTime,setUTCDate,setUTCFullYear,setUTCHours,setUTCMilliseconds,setUTCMinutes,setUTCMonth,setUTCSeconds,settings,shift,shift,sin,slice,slice,slice,some,some,sortOn,sort,sort,splice,splice,split,sqrt,substr,substring,tan,test,text,text,toDateString,toExponential,toExponential,toExponential,toFixed,toFixed,toFixed,toLocaleDateString,toLocaleLowerCase,toLocaleString,toLocaleString,toLocaleString,toLocaleTimeString,toLocaleUpperCase,toLowerCase,toPrecision,toPrecision,toPrecision,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toString,toTimeString,toUTCString,toUpperCase,toXMLString,toXMLString,trace,uint,unescape,unshift,unshift,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf,valueOf"><title>RegExp (ActionScript 3.0)</title><script src="AC_OETags.js" type="text/javascript"></script></head><body><script language="javascript" type="text/javascript" src="asdoc.js"></script><script language="javascript" type="text/javascript" src="help.js"></script><script language="javascript" type="text/javascript" src="cookies.js"></script><script language="javascript" type="text/javascript">  
            <!--  
			    
				asdocTitle = 'RegExp - ActionScript 3.0 Language and Components Reference';

				var baseRef = '';

				window.onload = configPage;
			      
			    -->  
            </script>
<script language="javascript" type="text/javascript"><!--
function submitValue(){
var searchStr=document.getElementById('search-livedocs').value;
window.location="search.html"+"###"+searchStr;
}
--></script><script type="text/javascript">
		scrollToNameAnchor();
	</script><table class="titleTable" cellpadding="0" cellspacing="0" id="titleTable" style="display:none"><tr><td class="titleTableTitle" align="left">ActionScript 3.0 Language and Components Reference</td><td class="titleTableSearch" align="center"><form class="searchForm" method="get" action="search.html" onsubmit="submitValue();"><input class="hidden" name="loc" value="" type="hidden"><input class="hidden" name="termPrefix" value="" type="hidden"><input class="hidden" name="term" value="" type="hidden"><input class="hidden" name="area" value="" type="hidden"><input id="search-livedocs" name="search_text" value="" title="" type="text"> <input type="button" name="action" value="Search" onclick="submitValue()"></form></td><td class="titleTableTopNav" align="right"><a href="../../Flash/10.0_Welcome/index.html">Home</a>&nbsp;|&nbsp;<a href="package-summary.html" onclick="loadClassListFrame('all-classes.html')">All Packages</a>&nbsp;|&nbsp;<a href="class-summary.html" onclick="loadClassListFrame('all-classes.html')">All Classes</a>&nbsp;|&nbsp;<a href="language-elements.html">Language Elements</a>&nbsp;| <a href="all-index-Symbols.html" onclick="loadClassListFrame('index-list.html')">Index</a>&nbsp;|&nbsp;<a href="appendixes.html">Appendixes</a>&nbsp;|&nbsp;<a href="conventions.html">Conventions</a>&nbsp;|&nbsp;<a id="framesLink1" href="index.html?RegExp.html&amp;">Frames</a><a id="noFramesLink1" style="display:none" href="" onclick="parent.location=document.location"> No Frames </a></td><td class="titleTableLogo" align="right" rowspan="3"><img src="images/logo.jpg" class="logoImage" alt=" Adobe Logo " title=" Adobe Logo "></td></tr><tr class="titleTableRow2"><td class="titleTableSubTitle" id="subTitle" align="left">RegExp</td><td class="titleTableSubNav" id="subNav" align="right" colspan="2"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a>&nbsp;| <a href="#styleSummary">Styles</a>&nbsp;| <a href="#effectSummary">Effects</a>&nbsp;| <a href="#constantSummary">Constants</a>&nbsp;| <a href="#includeExamplesSummary">Examples</a></td></tr><tr class="titleTableRow3"><td colspan="3">&nbsp;</td></tr></table><script language="javascript" type="text/javascript" xml:space="preserve">
                
                    
                

				<!--

				
				    
				

					if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("RegExp"); titleBar_setSubNav(false,true,false	,false,false,false,true,true,false	,false,false,false,false,false);}

				    
				        
				    
				-->
                
                    
                
			</script><div class="MainContent"><table class="classHeaderTable" cellpadding="0" cellspacing="0"><tr><td class="classHeaderTableLabel">Package</td><td><a href="package-detail.html" onclick="javascript:loadClassListFrame('class-list.html')">Top Level</a></td></tr><tr><td class="classHeaderTableLabel">Class</td><td class="classSignature">public dynamic   class  RegExp</td></tr><tr><td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">RegExp  <img src="images/inherit-arrow.gif" title="Inheritance" alt="Inheritance" class="inheritArrow"> <a href="Object.html">Object</a></td></tr></table><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p></p>
        The RegExp class lets you work with regular expressions, which are patterns that you can use 
     to perform searches in strings and to replace text in strings.
        <p>
          You can create a new RegExp object by using the
          <code>new RegExp()</code>
          constructor or by
     assigning a RegExp literal to a variable:
        </p>
        
               <div class="listing"><pre>var pattern1:RegExp = new RegExp("test-\\d", "i");
     var pattern2:RegExp = /test-\d/i;</pre></div>
        
               <p>
          For more information, see "Using Regular Expressions" in
          <i>Programming 
     ActionScript 3.0</i>
          .
        </p>
        
            <p></p><p><a href="#includeExamplesSummary">View the examples</a></p><p><span class="classHeaderTableLabel">See also</span></p><div class="seeAlso"><a href="String.html#match()" target="">String.match()</a><br/><a href="String.html#replace()" target="">String.replace()</a><br/><a href="String.html#search()" target="">String.search()</a></div><br/><hr></div><a name="propertySummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Properties</div><div class="showHideLinks"><div id="hideInheritedProperty" class="hideInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(false,'Property');"><img class="showHideLinkImage" src="images/expanded.gif"> Hide Inherited Public Properties</a></div><div id="showInheritedProperty" class="showInheritedProperty"><a class="showHideLink" href="#propertySummary" onclick="javascript:setInheritedVisible(true,'Property');"><img class="showHideLinkImage" src="images/collapsed.gif"> Show Inherited Public Properties</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableProperty"><tr><th>&nbsp;</th><th colspan="2">Property</th><th>Defined By</th></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="Object.html#constructor" class="signatureLink">constructor</a> : <a href="Object.html">Object</a><div class="summaryTableDescription">A reference to the class object or constructor function for a given object instance.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#dotall" class="signatureLink">dotall</a> : <a href="Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Specifies whether the dot character (.) in a regular expression pattern matches 
         new-line characters.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#extended" class="signatureLink">extended</a> : <a href="Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Specifies whether to use extended mode for the regular expression.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#global" class="signatureLink">global</a> : <a href="Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Specifies whether to use global matching for the regular expression.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#ignoreCase" class="signatureLink">ignoreCase</a> : <a href="Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Specifies whether the regular expression ignores case sensitivity.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#lastIndex" class="signatureLink">lastIndex</a> : <a href="Number.html">Number</a><div class="summaryTableDescription">Specifies the index position in the string at which to start the next search.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#multiline" class="signatureLink">multiline</a> : <a href="Boolean.html">Boolean</a><div class="summaryTableDescription">[read-only] Specifies whether the m (multiline) flag is set.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class="hideInheritedProperty"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><a href="Object.html#prototype" class="signatureLink">prototype</a> : <a href="Object.html">Object</a><div class="summaryTableDescription">[static] A reference to the prototype object of a class or function object.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a href="#source" class="signatureLink">source</a> : <a href="String.html">String</a><div class="summaryTableDescription">[read-only] Specifies the pattern portion of the regular expression.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr></table></div><a name="methodSummary"></a><div class="summarySection"><div class="summaryTableTitle">Public Methods </div><div class="showHideLinks"><div id="hideInheritedMethod" class="hideInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(false,'Method');"><img class="showHideLinkImage" src="images/expanded.gif"> Hide Inherited Public Methods</a></div><div id="showInheritedMethod" class="showInheritedMethod"><a class="showHideLink" href="#methodSummary" onclick="javascript:setInheritedVisible(true,'Method');"><img class="showHideLinkImage" src="images/collapsed.gif"> Show Inherited Public Methods</a></div></div><table cellspacing="0" cellpadding="3" class="summaryTable " id="summaryTableMethod"><tr><th>&nbsp;</th><th colspan="2">Method</th><th>Defined By</th></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#RegExp()" class="signatureLink">RegExp</a>(re:<a href="String.html">String</a>, flags:<a href="String.html">String</a>)</div><div class="summaryTableDescription">Lets you construct a regular expression from two strings.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#exec()" class="signatureLink">exec</a>(str:<a href="String.html">String</a>):<a href="Object.html">Object</a></div><div class="summaryTableDescription">Performs a search for the regular expression on the given string str.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#hasOwnProperty()" class="signatureLink">hasOwnProperty</a>(name:<a href="String.html">String</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an object has a specified property defined.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#isPrototypeOf()" class="signatureLink">isPrototypeOf</a>(theClass:<a href="Object.html">Object</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether an instance of the Object class is in the prototype chain of the object specified 
  as the parameter.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#propertyIsEnumerable()" class="signatureLink">propertyIsEnumerable</a>(name:<a href="String.html">String</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Indicates whether the specified property exists and is enumerable.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#setPropertyIsEnumerable()" class="signatureLink">setPropertyIsEnumerable</a>(name:<a href="String.html">String</a>, isEnum:<a href="Boolean.html">Boolean</a> = true):<a href="specialTypes.html#void">void</a></div><div class="summaryTableDescription">Sets the availability of a dynamic property for loop operations.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class=""><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="#test()" class="signatureLink">test</a>(str:<a href="String.html">String</a>):<a href="Boolean.html">Boolean</a></div><div class="summaryTableDescription">Tests for the match of the regular expression in the given string str.</div></td><td class="summaryTableOwnerCol">RegExp</td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#toString()" class="signatureLink">toString</a>():<a href="String.html">String</a></div><div class="summaryTableDescription">Returns the string representation of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr><tr class="hideInheritedMethod"><td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img src="images/inheritedSummary.gif" alt="Inherited" title="Inherited" class="inheritedSummaryImage"></td><td class="summaryTableSignatureCol"><div class="summarySignature"><a href="Object.html#valueOf()" class="signatureLink">valueOf</a>():<a href="Object.html">Object</a></div><div class="summaryTableDescription">Returns the primitive value of the specified object.</div></td><td class="summaryTableOwnerCol"><a href="Object.html">Object</a></td></tr></table></div><script language="javascript" type="text/javascript"><!--
                      showHideInherited();
                      --></script><div class="MainContent"><div class="detailSectionHeader">Property Detail</div><a name="propertyDetail"></a><a name="dotall"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">dotall</td><td class="detailHeaderType">property</td></tr></table><div class="detailBody"><code>dotall:<a href="Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies whether the dot character (.) in a regular expression pattern matches 
         new-line characters. Use the
          <code>s</code>
          flag when constructing 
         a regular expression to set
          <code>dotall = true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get dotall():<a href="Boolean.html">Boolean</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect of the
          <code>s</code>
          (
          <code>dotall</code>
          ) 
 flag on a regular expression:
          <div class="listing"><pre>var str:String = "&lt;p&gt;Hello\n"
        + "again&lt;/p&gt;"
        + "&lt;p&gt;Hello&lt;/p&gt;";

var pattern:RegExp = /&lt;p&gt;.*?&lt;\/p&gt;/;
trace(pattern.dotall) // false
trace(pattern.exec(str)); // &lt;p&gt;Hello&lt;/p&gt;

pattern = /&lt;p&gt;.*?&lt;\/p&gt;/s;
trace(pattern.dotall) // true
trace(pattern.exec(str));</pre></div>
        </div></div><a name="propertyDetail"></a><a name="extended"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">extended</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>extended:<a href="Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies whether to use extended mode for the regular expression. 
         When a RegExp object is in extended mode, white space characters in the constructor  
         string are ignored. This is done to allow more readable constructors.
          <p>
            Use the
            <code>x</code>
            flag when constructing a regular expression to set
            <code>extended = true</code>
            .
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get extended():<a href="Boolean.html">Boolean</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows different ways to construct the same regular
 expression. In each, the regular expression is to match a phone number pattern of 
 xxx-xxx-xxxx or (xxx) xxx-xxxx or (xxx)xxx-xxxx.
 The second regular expression uses the
          <code>x</code>
          flag, causing the white spaces in  
 the string to be ignored.
          <div class="listing"><pre>var rePhonePattern1:RegExp = /\d{3}-\d{3}-\d{4}|\(\d{3}\)\s?\d{3}-\d{4}/; 
var str:String = "The phone number is (415)555-1212.";

trace(rePhonePattern1.extended) // false
trace(rePhonePattern1.exec(str)); // (415)555-1212

var rePhonePattern2:RegExp = / \d{3}-\d{3}-\d{4}  |   \( \d{3} \) \ ? \d{3}-\d{4}  /x; 
trace(rePhonePattern2.extended) // true
trace(rePhonePattern2.exec(str)); // (415)555-1212</pre></div>
        </div></div><a name="propertyDetail"></a><a name="global"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">global</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>global:<a href="Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies whether to use global matching for the regular expression. When
          <code>global == true</code>
          , the
          <code>lastIndex</code>
          property is set after a match is 
         found. The next time a match is requested, the regular expression engine starts from 
         the
          <code>lastIndex</code>
          position in the string. Use the
          <code>g</code>
          flag when 
         constructing a regular expression  to set
          <code>global</code>
          to
          <code>true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get global():<a href="Boolean.html">Boolean</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect setting the
          <code>g</code>
          (
          <code>global</code>
          ) flag on the
          <code>exec()</code>
          method:
          <div class="listing"><pre>var pattern:RegExp = /foo\d/; 
var str:String = "foo1 foo2";
trace(pattern.global); // false
trace(pattern.exec(str)); // foo1
trace(pattern.lastIndex); // 0
trace(pattern.exec(str)); // foo1

pattern = /foo\d/g;
trace(pattern.global); // true
trace(pattern.exec(str)); // foo1
trace(pattern.lastIndex); // 4
trace(pattern.exec(str)); // foo2</pre></div>
        </div></div><a name="propertyDetail"></a><a name="ignoreCase"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">ignoreCase</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>ignoreCase:<a href="Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies whether the regular expression ignores case sensitivity. Use the
          <code>i</code>
          flag when constructing a regular expression to set
          <code>ignoreCase = true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get ignoreCase():<a href="Boolean.html">Boolean</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect of setting the
          <code>i</code>
          (
          <code>ignoreCase</code>
          ) flag:
          <div class="listing"><pre>var pattern:RegExp = /bob/; 
var str:String = "Bob bob";
trace(pattern.ignoreCase); // false
trace(pattern.exec(str)); // bob

pattern = /bob/i;
trace(pattern.ignoreCase); // true
trace(pattern.exec(str)); // Bob</pre></div>
        </div></div><a name="propertyDetail"></a><a name="lastIndex"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">lastIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>lastIndex:<a href="Number.html">Number</a></code>&nbsp;&nbsp;[read-write] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies the index position in the string at which to start the next search. This property 
         affects the
          <code>exec()</code>
          and
          <code>test()</code>
          methods of the RegExp class. 
         However, the
          <code>match()</code>
          ,
          <code>replace()</code>
          , and
          <code>search()</code>
          methods
         of the String class ignore the
          <code>lastIndex</code>
          property and start all searches from
         the beginning of the string.
          <p>
            When the
            <code>exec()</code>
            or
            <code>test()</code>
            method finds a match and the
            <code>g</code>
            (
            <code>global</code>
            ) flag is set to
            <code>true</code>
            for the regular expression, the method
         automatically sets the
            <code>lastIndex</code>
            property to the index position of the character
            <i>after</i>
            the last character in the matching substring of the last match. If the
            <code>g</code>
            (
            <code>global</code>
            ) flag is set to
            <code>false</code>
            , the method does not 
         set the
            <code>lastIndex</code>
            property.
          </p>
          
          <p>
            You can set the
            <code>lastIndex</code>
            property to adjust the starting position
         in the string for regular expression matching.
          </p>
          
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get lastIndex():<a href="Number.html">Number</a></code><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function set lastIndex(value:<a href="Number.html">Number</a>):<a href="specialTypes.html#void">void</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect of setting the
          <code>lastIndex</code>
          property, and it shows how it is updated after a call to the
          <code>exec()</code>
          method on a
 regular expression in which the
          <code>g</code>
          (
          <code>global</code>
          ) flag is set:
          <div class="listing"><pre>var pattern:RegExp = /\w\d/g; 
var str:String = "a1 b2 c3 d4";
pattern.lastIndex = 2; 
trace(pattern.exec(str)); // b2
trace(pattern.lastIndex); // 5
trace(pattern.exec(str)); // c3
trace(pattern.lastIndex); // 8
trace(pattern.exec(str)); // d4
trace(pattern.lastIndex); // 11
trace(pattern.exec(str)); // null</pre></div>
        </div></div><a name="propertyDetail"></a><a name="multiline"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">multiline</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>multiline:<a href="Boolean.html">Boolean</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Specifies whether the
          <code>m</code>
          (
          <code>multiline</code>
          ) flag is set. If it is set,
         the caret (
          <code>^</code>
          ) and dollar sign (
          <code>$</code>
          ) in a regular expression 
         match before and after new lines. 
         Use the
          <code>m</code>
          flag when constructing a regular expression to set
          <code>multiline = true</code>
          .
        </p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get multiline():<a href="Boolean.html">Boolean</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following example shows the effect setting the
          <code>m</code>
          (
          <code>multiline</code>
          ) flag:
          <div class="listing"><pre>var pattern:RegExp = /^bob/; 
var str:String = "foo\n"
                + "bob";
trace(pattern.multiline); // false
trace(pattern.exec(str)); // null

pattern = /^bob/m;
trace(pattern.multiline); // true
trace(pattern.exec(str)); // bob</pre></div>
        </div></div><a name="propertyDetail"></a><a name="source"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">source</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code>source:<a href="String.html">String</a></code>&nbsp;&nbsp;[read-only] <p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>Specifies the pattern portion of the regular expression.</p><br/><br/><span class="label"> Implementation </span><br/><code>&nbsp;&nbsp;&nbsp;&nbsp;public function get source():<a href="String.html">String</a></code><br/><br/><span class="label"> Example </span><br/><div class="detailBody">
          The following code outputs the
          <code>source</code>
          parameter for two regular expressions:
          <div class="listing"><pre>var re1:RegExp = /aabb/gi;
trace (re1.source); // aabb

var re2:RegExp = new RegExp("x+y*", "i");
trace(re2.source); // x+y*</pre></div>
        </div></div><a name="constructorDetail"></a><div class="detailSectionHeader">Constructor Detail</div><a name="RegExp()"></a><a name="RegExp(String,String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">RegExp</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">Constructor</td></tr></table><div class="detailBody"><code>public function RegExp(re:<a href="String.html">String</a>, flags:<a href="String.html">String</a>)</code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p>Lets you construct a regular expression from two strings. One string defines the pattern of the
        regular expression, and the other defines the flags used in the regular expression.</p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">re</span>:<a href="String.html">String</a></code> &mdash; 
              The pattern of the regular expression (also known as the
              <i>constructor string</i>
              ). This is the 
        main part  of the regular expression (the part that goes within the "/" characters).
              <p>
                <b>Notes:</b>
                
              </p>
              
              <ul><li>
                  Do not include the starting and trailing "/" characters; use these only when defining a regular expression
        literal without using the constructor. For example, the following two regular expressions are equivalent:
                  <div class="listing"><pre>var re1:RegExp = new RegExp("bob", "i"); 
        var re2:RegExp = /bob/i;</pre></div>
                  
                </li><li>
                  In a regular expression that is defined with the
                  <code>RegExp()</code>
                  constructor method, to use a 
        metasequence that begins with the backslash (\) character, such as
                  <code>\d</code>
                  (which matches any digit), 
        type the backslash character twice. For example, the following two regular expressions are equivalent:
                  <div class="listing"><pre>var re1:RegExp = new RegExp("\\d+", ""); 
        var re2:RegExp = /\d/;</pre></div>
                  
                  <p>
                    In the first expression, you must type the backlash character twice in this case, because the first parameter of the
                    <code>RegExp()</code>
                    constructor method is a string, and in a string literal you must type a backslash character twice to have it 
        recognized as a single  backslash character.
                  </p>
                  
                </li></ul>
              
            </td></tr><tr><td class="paramSpacer">&nbsp;</td></tr><tr><td width="20px"></td><td><code><span class="label">flags</span>:<a href="String.html">String</a></code> &mdash; 
              The modifiers of the regular expression. These can include the following:
              <ul><li>
                  
                  <code>g</code>
                  &mdash; When using the
                  <code>replace()</code>
                  method of the String class, 
          specify this modifier to replace all matches, rather than only the first one. 
          This modifier corresponds to the
                  <code>global</code>
                  property of the RegExp instance.
                </li><li>
                  
                  <code>i</code>
                  &mdash; The regular expression is evaluated
                  <i>without</i>
                  case 
          sensitivity. This modifier corresponds to the
                  <code>ignoreCase</code>
                  property of the RegExp instance.
                </li><li>
                  
                  <code>s</code>
                  &mdash; The dot (
                  <code>.</code>
                  ) character matches new-line characters. Note 
              This modifier corresponds to the
                  <code>dotall</code>
                  property of the RegExp instance.
                </li><li>
                  
                  <code>m</code>
                  &mdash; The caret (
                  <code>^</code>
                  ) character and dollar sign (
                  <code>$</code>
                  ) match 
          before
                  <i>and</i>
                  after new-line characters. This modifier corresponds to the
                  <code>multiline</code>
                  property of the RegExp instance.
                </li><li>
                  
                  <code>x</code>
                  &mdash; White space characters in the
                  <code>re</code>
                  string are ignored, 
          so that you can write more readable constructors. This modifier corresponds to the
                  <code>extended</code>
                  property of the RegExp instance.
                </li></ul>
              
              <p>
                All other characters in the
                <code>flags</code>
                string are ignored.
              </p>
              
            </td></tr></table></div><a name="methodDetail"></a><div class="detailSectionHeader">Method Detail</div><a name="exec()"></a><a name="exec(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">exec</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function exec(str:<a href="String.html">String</a>):<a href="Object.html">Object</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Performs a search for the regular expression on the given string
          <code>str</code>
          .
          <p>
            If the
            <code>g</code>
            (
            <code>global</code>
            ) flag is
            <i>not</i>
            set for the regular 
         expression, then the search starts 
         at the beginning of the string (at index position 0); the search ignores
         the
            <code>lastIndex</code>
            property of the regular expression.
          </p>
          
          <p>
            If the
            <code>g</code>
            (
            <code>global</code>
            ) flag
            <i>is</i>
            set for the regular 
         expression, then the search starts 
         at the index position specified by the
            <code>lastIndex</code>
            property of the regular expression. 
         If the search matches a substring, the
            <code>lastIndex</code>
            property changes to match the position 
         of the end of the match.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">str</span>:<a href="String.html">String</a></code> &mdash; The string to search.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Object.html">Object</a></code> &mdash; 
              If there is no match,
              <code>null</code>
              ; otherwise, an object with the following properties:
              <ul><li>
                  An array, in which element 0 contains the complete matching substring, and  
         other elements of the array (1 through
                  <i>n</i>
                  ) contain substrings that match parenthetical groups  
         in the regular expression
                </li><li>
                  <code>index</code>
                  &mdash; The character position of the matched substring within 
              the string
                </li><li>
                  <code>input</code>
                  &mdash; The string (
                  <code>str</code>
                  )
                </li></ul>
              
            </td></tr></table><p><span class="label">See also</span></p><div class="seeAlso"><a href="String.html#match()" target="">String.match()</a><br/><a href="String.html#search()" target="">String.search()</a></div><br/><span class="label"> Example </span><br/><div class="detailBody">
          When the
          <code>g</code>
          (
          <code>global</code>
          ) flag is
          <i>not</i>
          set in the regular expression, then you can 
         use
          <code>exec()</code>
          to find the first match in the string:
          <div class="listing"><pre>var myPattern:RegExp = /(\w*)sh(\w*)/ig;   
         var str:String = "She sells seashells by the seashore";
         var result:Object = myPattern.exec(str);
         trace(result);</pre></div>
          
          <p>
            The
            <code>result</code>
            object is set to the following:
          </p>
          
          <ul><li>
              
              <code>result[0]</code>
              is set to
              <code>"She"</code>
              (the complete
              match).
            </li><li>
              
              <code>result[1]</code>
              is set to an empty string (the first matching  
              parenthetical group).
            </li><li>
              
              <code>result[2]</code>
              is set to
              <code>"e"</code>
              (the second matching  
              parenthetical group).
            </li><li>
              
              <code>result.index</code>
              is set to 0.
            </li><li>
              
              <code>result.input</code>
              is set to the input string:
              <code>"She sells seashells 
          by the seashore"</code>
              .
            </li></ul>
          
          <p>
            In the following example, the
            <code>g</code>
            (
            <code>global</code>
            ) flag
            <i>is</i>
            set in the regular 
         expression, so you can use
            <code>exec()</code>
            repeatedly to find multiple matches:
          </p>
          
          <div class="listing"><pre>var myPattern:RegExp = /(\w*)sh(\w*)/ig;  
         var str:String = "She sells seashells by the seashore";
         var result:Object = myPattern.exec(str);
                  while (result != null) {
             trace ( result.index, "\t", result);
             result = myPattern.exec(str);
         }</pre></div>
          
          <p>This code results in the following output:</p>
          
          <pre>
            <code>0      She,,e
            10     seashells,sea,ells
            27     seashore,sea,ore</code>
          </pre>
          
        </div></div><a name="test()"></a><a name="test(String)"></a><table class="detailHeader" cellpadding="0" cellspacing="0"><tr><td class="detailHeaderName">test</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td></tr></table><div class="detailBody"><code> <a href="statements.html#AS3">AS3</a> function test(str:<a href="String.html">String</a>):<a href="Boolean.html">Boolean</a></code><p></p><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Language Version:&nbsp;</b></td><td>ActionScript 3.0</td></tr></table><table cellpadding="0" cellspacing="0" border="0"><tr><td style="white-space:nowrap" valign="top"><b>Runtime Versions:&nbsp;</b></td><td>AIR 1.0, Flash Player 9</td></tr></table><p></p><p></p><p>
          Tests for the match of the regular expression in the given string
          <code>str</code>
          .
          <p>
            If the
            <code>g</code>
            (
            <code>global</code>
            ) flag is
            <i>not</i>
            set for the regular expression, 
         then the search starts at the beginning of the string (at index position 0); the search ignores
         the
            <code>lastIndex</code>
            property of the regular expression.
          </p>
          
          <p>
            If the
            <code>g</code>
            (
            <code>global</code>
            ) flag
            <i>is</i>
            set for the regular expression, then the search starts 
         at the index position specified by the
            <code>lastIndex</code>
            property of the regular expression. 
         If the search matches a substring, the
            <code>lastIndex</code>
            property changes to match the 
         position of the end of the match.
          </p>
          
        </p><p><span class="label"> Parameters </span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20px"></td><td><code><span class="label">str</span>:<a href="String.html">String</a></code> &mdash; The string to test.</td></tr></table></p><p></p><span class="label">Returns</span><table cellpadding="0" cellspacing="0" border="0"><tr><td width="20"></td><td><code><a href="Boolean.html">Boolean</a></code> &mdash; 
              If there is a match,
              <code>true</code>
              ; otherwise,
              <code>false</code>
              .
            </td></tr></table><br/><span class="label"> Example </span><br/><br/><div class="detailBody">
          The following example shows the use of the
          <code>test()</code>
          method on a regular
 expression in which the
          <code>g</code>
          (
          <code>global</code>
          ) flag is set:
          <div class="listing"><pre>var re1:RegExp = /\w/g;
var str:String = "a b c";
trace (re1.lastIndex); // 0
trace (re1.test(str)); // true
trace (re1.lastIndex); // 1
trace (re1.test(str)); // true
trace (re1.lastIndex); // 3
trace (re1.test(str)); // true
trace (re1.lastIndex); // 5
trace (re1.test(str)); // false</pre></div>
        </div></div><a name="includeExamplesSummary"></a><div class="detailSectionHeader">Examples<span class="usage"><a href="ExampleInstruct.html"> How to use examples </a></span></div><div class="exampleHeader">RegExpExample.as</div><br/><div class="detailBody">
        The following example shows how you can use regular expressions to parse
 strings and return a new string or a Boolean value, based on the string passed in.  The
        <code>informalizeGreeting()</code>
        method simply replaces the word
        <code>Hello</code>
        with
        <code>Hi</code>
        , 
 regardless of case.  It also strips out the surname in the name in the string 
 (assuming that name matches the specified pattern). In the
        <code>validateEmail()</code>
        and
        <code>validatePhoneNumber()</code>
        methods, the string passed is checked to see if its pattern matches a valid 
 email address or a specific phone number pattern, and the methods return Boolean values based on the results.
        <div class="listing"><pre>package {
    import flash.display.Sprite;

    public class RegExpExample extends Sprite {        
        public function RegExpExample() {            
            var formalGreeting:String = "Hello, John Smith.";
            trace(informalizeGreeting(formalGreeting));    // Hi, John.

            var validEmail:String = "name@domain.com";
            trace(validateEmail(validEmail));        // true
            
            var invalidEmail:String = "foo";
            trace(validateEmail(invalidEmail));  // false
            
            var validPhoneNumber:String = "415-555-1212";
            trace(validatePhoneNumber(validPhoneNumber));    // true
            
            var invalidPhoneNumber:String = "312-867-530999";
            trace(validatePhoneNumber(invalidPhoneNumber));  // false
        }
        private function informalizeGreeting(str:String):String {
            var pattern:RegExp = new RegExp("hello, (\\w+) \\w+", "i");
            return str.replace(pattern, "Hi, $1");
        }
        private function validateEmail(str:String):Boolean {
            var pattern:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/;
            var result:Object = pattern.exec(str);
            if(result == null) {
                return false;
            }
            return true;
        }
        private function validatePhoneNumber(str:String):Boolean {
            var pattern:RegExp = /^\d{3}-\d{3}-\d{4}$/;
            var result:Object = pattern.exec(str);
            if(result == null) {
                return false;
            }
            return true;
        }
    }
}</pre></div>
      </div><br/><br/><hr><br/><p></p><center class="copyright"> &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  </center><div style="display:none">RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp RegExp </div></div></body></html><!-- &copy; 2004-2008 Adobe Systems Incorporated. All rights reserved. <br/>Thu Oct 30 2008, 07:08 PM -07:00  -->
