JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#1097 /regexp/ compilation in AS3 direct editation
Author:
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

I am trying to write a simple AS3 script to replace a part of a string, with the help of RegExp. However, if I try using /regex/, it tells me that "CURLY_CLOSE expected, DIVIDE found". As a workaround, I tried using "var test:RegExp = new RegExp("/regex/", "");", however this does not work for the thing I am working on (Fallout 4 game HUD, in short), and it causes a crash if I force it. In short, this line throws an error: "var _loc10_:RegExp = /<..> /;" I am sorry, very new to AS3, however I found an online interpreter and tested stuff there first. Checked Adobe website for Regex and etc... and the line above should be valid, or am I doing something wrong? Using JPEXS 7.1.1, on Win7 64bit, latest Flash Player and playerglobal_19.swc.
Sorry for long delay. var test:RegExp = new RegExp("regex", ""); should work - without the slashes. /xx/ syntax is currently unsupported in compiler (direct edit), it might be added in future.
Title: RegExp problem→/regexp/ compilation in AS3 direct editation
It can be compiled in current nightly (1202+)
State: new→upgraded
I close this issue due to inactivity. Please create new issue if problem still exists.
State: upgraded→closed