jsmorley wrote:You need to turn off "line wrapping" in your text editor, so you can be sure it is all on one line. Many if not most editors will make it "look" like it is on separate lines by wrapping it in the editor, but you want to be sure it isn't actually chopping it into separate lines.
I turned off Word Wrapping in notepad and now it's definitely one long line... but I still get the same error on refresh...
edit: found the problem, there was an extra space hidden somewhere in that huge line of regexp :P
There is some error in that RegExp, even after I get it all on one line. I'm not sure where, but somewhere there is a missing space, or a comma instead of a period, or something. I get a matching error as well, unless I cut it down to just the first 10 or so.
It's certainly annoying when there's a hugely long line and I have to find the one silly space that got away :P I fast-forwarded this by pasting the line into Word, where the spaces are a lot more obvious, and fixing them there, then pasting them back in. So, for now, this works Thanks for all the help I'll probably find more problems and require more assistance later though...
Kyremi wrote:It's certainly annoying when there's a hugely long line and I have to find the one silly space that got away :P I fast-forwarded this by pasting the line into Word, where the spaces are a lot more obvious, and fixing them there, then pasting them back in. So, for now, this works Thanks for all the help I'll probably find more problems and require more assistance later though...
Is there a way to replace underscore characters with a whitespace character? One of the bits of data I grab is a current weather situation description, and some of them have a _, e.g. Night_time. Is there a way to tell the string meter to write that as whitespace?
Kyremi wrote:Is there a way to replace underscore characters with a whitespace character? One of the bits of data I grab is a current weather situation description, and some of them have a _, e.g. Night_time. Is there a way to tell the string meter to write that as whitespace?
Sure. On the child measure returning that value, put:
Substitute="_":" "
That will replace all underscores with spaces in that result.