Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Flash ActionScript
Regular Expressions 32 codes
Home
Flash ActionScript
Regular Expressions
1 () quantifier matches zero or more times
2 Case-insensitive, you can add the i flag
3 Create a global regex to match multiple times in a string
4 Create a global regular expression that matches three-letter words
5 Create a pattern to match against a string
6 Create a regular expression that matches three-letter words
7 Creating a Nongreedy Pattern
8 Creating a Regular Expression Object
9 Determining whether a string contains a valid email address format
10 Extracting phone number
11 Force the last index to be past the first matching position
12 Insisting that the line end right after the phone number
13 Invert a character class by using a caret (^) immediately after the open bracket ([)
14 LastIndex property is set to a different value
15 Looking for Pattern Matches
16 Match a phone number
17 Matching Using a Regular Expression Object
18 Quantifiers
19 Read and write to this property to move the starting point of the next match
20 RegExp((ABC) (A);(B) (C) (ABC), i)
21 Regular expression w is created in ActionScript
22 Return simply whether the string matches the pattern at all
23 String Methods and Regular Expressions
24 The lastMatch property is the string containing the last match made by the regular expression
25 To escape a character, simply preface it with a backslash () This goes for the backslash character as well
26 To flag it to match globally and multiline, the following will work
27 To know whether at least one match exists
28 To match an optional character or sequence, use the question mark quantifier ()
29 Trace the index
30 Use ranges with the dash character (-), and you can have multiple ranges in one character class, as well as combine ra
31 Use the exec() method
32 Using a regular expression to determine whether a string contains a valid email address format