Chapter 16. Regular Expressions
Regular expressions enable you to look for substrings that match a pattern, making them a powerful way to work with strings. For basic substring searches, you can use String
class methods such as indexOf()
. Methods such as indexOf()
work when you know the exact substring you want to find. For example, if you want to determine whether a string contains the substring cog
you can use the following code:
var string:String ...
Get Advanced ActionScript 3 with Design Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.