REGULAR EXPRESSIONS
one of unix's most complicated, amazing and powerful
features is now inside your web browser. spend some
time to learn them, they can do magic.
the string objects uses them in:
- Array result = string.match(regExp)
- new = old.replace(regExp, replacementText)
- index = string.search(regExp)
the RegExp object has functions in its own right:
- exec(string) - apply the expression to the string
- test(string) - checks if the expression will match
- access results with RegExp.$1 thru RegExp.$9
This stuff works fine on NS4 and IE5