The topic of regular expressions can be advanced, but this article will drill down to a specific use
The problem is, you have a link <a href="">Link Me</a> which you want to match just the "Link Me" portion.
As you can see, the meat of this code is within the new RegExp() call.
The actual matching pattern is:
This example is called once the page loads and after the match is completed, simply alerts (outputs) the matches in the form of a dialog box.
The "match()" function is called from the string and takes the regular expression pattern as an argument.
Once the pattern array is filled you want to remove the first entry, because it contains the complete matched pattern. This is achieved using splice() function on the newly created array.
That is all there is to this basic regular expression matching system
The next step will be to form this into a complete tool and even port it to ActionScript, now that AS3 offers native regular expression support.
Validate Site: XHTML CSS | Designed by: Matthew Keefe of mkeefeDESIGN