reMatch returns an array of matches
Thursday September 17, 2009 11:31 PM
Word Count: 120
I don't know why but I just found out how useful rematch can be this week. The rematch function will take a regular expression, a string to search and then return to you an array of matches. In my case I was reading a file and searching for a specific string. Let's take a look at this example and just how useful it can be. The data is piece out of the template I was reading. The regular expression "{[^{]+}" will find the text between { and }.

