What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! Bug Reports » Error due to forced new line

Error due to forced new line
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
O.P. Error due to forced new line
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)
[Image: markee.png]
02-04-2008 12:45 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Error due to forced new line
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"
[Image: spartaafk.png]
02-19-2008 02:21 AM
Profile PM Web Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
O.P. RE: Error due to forced new line
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).
[Image: markee.png]
02-19-2008 12:29 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On