Shoutbox

Error due to forced new line - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: Error due to forced new line (/showthread.php?tid=81437)

Error due to forced new line by markee on 02-04-2008 at 12:45 PM

I was writing a regex for a script and got an "Error: Expected ')' in regular expression (code: -2146823268)" and the only reason I can find for this is that the regex goes over multiple lines (yes I know it is long, but it should be specific.  I did make it as short as possible).  This would not have happened in build <4.5 as there was no forcing on to new lines.  I understand that you are trying to help with this feature but I personally find it a hinderence, especially in this situation.

Just to quench the curiosity of people, I was writing a regex for capturing Plus! tags, but I can't even test it properly in the script engine.... (luckily I have other methods :P)


RE: Error due to forced new line by RaceProUK on 02-19-2008 at 02:21 AM

If the regex is in a string literal, just do something like this:

code:
regex = "part 1"
    + "part 2"
    + "part 3"
    + "part 4"
    + "part 5"

RE: Error due to forced new line by markee on 02-19-2008 at 12:29 PM

quote:
Originally posted by RaceProUK
If the regex is in a string literal, just do something like this:
code:
regex = "part 1"
    + "part 2"
    + "part 3"
    + "part 4"
    + "part 5"

But it wasn't like that, I made it between a couple of slashes.  I dont think I should need to change my work anyway, if I really wanted to I could just use a different text editor for those couple of lines and plus wouldn't worry about it (unless I modified them) (don't quote me as I'm not 100% sure of this).