JPEXS Free Flash Decompiler Issue Tracker

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

+ update 2020: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means we will NOT develop new features and/or fix most of bugs. We left the tracker running in case somebody from community would like to work on it. Sorry for the inconvenience.

List of issuesList of issues

#1097 /regexp/ compilation in AS3 direct editation
Author: user lyravega
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3Direct Editation
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.
admin
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
admin
It can be compiled in current nightly (1202+)
State: new→upgraded
developer
I close this issue due to inactivity. Please create new issue if problem still exists.
State: upgraded→closed