Hey all, finally decided to migrate to AS3 (ashame I didn't do it sooner!), and I'm having some issues with the RegExp. I have a regexp that shows through both http://gskinner.com/RegExr/ and http://www.regexplanet.com/simple/index_html.jsp that the html:
is 100% fully matched (including the grouping around the value) when I use the following test regexp:Code:<b>Genres:</b></font></td> <td valign="top"><font face=arial size=-1>Action/Adventure, Art/Foreign, Drama, Suspense/Horror, Thriller, Crime/Gangster and Adaptation</font></td>
Basically what I am trying to do is make an array of regexp codes to loop through a URLLoader's result and pick out all the values. The problem comes when I try to write the above code into the CS4 IDE. It's not recognizing the second " at \"top\". Everything until the end of the line and all following lines are treated as a string until the next " is found. The issue goes away if I add an extra \ before the escape character of the second ", but then the regexp fails, obviously. Any ideas why testers show this works and the IDE hates it?Code:/\<b\>Genres:\<\/b\>\<\/font\>\<\/td\>\s+\<td\svalign\=\"top\"\>\<font\sface\=arial\ssize\=-1\>([a-zA-Z0-9,.\/ ]+)\<\/font\>\<\/td\>/gi




Reply With Quote