VBScript is a Microsoft product. It is not our implementation. We have *ZERO* control over it. So if you believe there is a bug in VBScript please report it to Microsoft.
That said I do not get any error with your code.
Macro Scheduler/VBScript/RegEx Bugs
Moderators: JRL, Dorian (MJT support)
Macro Scheduler/VBScript/RegEx Bugs
Last edited by armsys on Mon May 20, 2013 9:42 am, edited 1 time in total.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
I have honestly reported the Macro Scheduler bug.
Yes, other VBScript programmers have reported and confirmed no issue with CRLFs and double-quotes under VBScript alone.
It's strictly a Macro Scheduler bug.
If you ignore it, it's my not my problem.
I have already developed a full set of MS scripts to ocvercome most MS regex bugs. So it's no longer my concern.
Besides RegEx, I'm a happy user of Macro Scheduler.
It took me two years of effort to identify the exact cause of the bug.
And I don't want to waste my time anymore.
Yes, other VBScript programmers have reported and confirmed no issue with CRLFs and double-quotes under VBScript alone.
It's strictly a Macro Scheduler bug.
If you ignore it, it's my not my problem.
I have already developed a full set of MS scripts to ocvercome most MS regex bugs. So it's no longer my concern.
Besides RegEx, I'm a happy user of Macro Scheduler.
It took me two years of effort to identify the exact cause of the bug.
And I don't want to waste my time anymore.
Last edited by armsys on Mon May 20, 2013 9:54 am, edited 1 time in total.
After reading Marcus' reply again, I'm honestly perplexed by his statement.
I could be wrong. There are a huge combination of probable causes such as Windows locale setting.
Marcus, should I email you the screenshots of the error messages?
Can other MS users be kindly to test out my script?Marcus Tettmar wrote: That said I do not get any error with your code.
I could be wrong. There are a huge combination of probable causes such as Windows locale setting.
Marcus, should I email you the screenshots of the error messages?
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I've just realised you were talking about the ConCat statements:
ConCat>text,CRLF
ConCat>text,"
I thought you were were talking about commenting out of either of the pattern values.
I guess you forget that VBScript needs vbCRLF for line breaks. It also uses " as the string delimiter, so "'s should be double quoted ("")
StringReplace>text,CRLF," & vbCRLF & ",text
StringReplace>text,","",text
But this has nothing whatsoever to do with RegEx (which is why you threw me and I didn't notice your mention of the commented out ConCat until later).
Here's a video showing me making these adjustments and no errors occuring.
https://mjtnet.viewscreencasts.com/45bd ... 9b001972bc
ConCat>text,CRLF
ConCat>text,"
I thought you were were talking about commenting out of either of the pattern values.
I guess you forget that VBScript needs vbCRLF for line breaks. It also uses " as the string delimiter, so "'s should be double quoted ("")
StringReplace>text,CRLF," & vbCRLF & ",text
StringReplace>text,","",text
But this has nothing whatsoever to do with RegEx (which is why you threw me and I didn't notice your mention of the commented out ConCat until later).
Here's a video showing me making these adjustments and no errors occuring.
https://mjtnet.viewscreencasts.com/45bd ... 9b001972bc
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Thanks for taking time to show me the proper to code VBScript.Marcus Tettmar wrote:I guess you forget that VBScript needs vbCRLF for line breaks. It also uses " as the string delimiter, so "'s should be double quoted ("")
You proved the Macro Scheduler's support of VBScript is perfect.
Above all, I was wrong in respect of MS/VBScript Regex support.
It's my fault. I apologize for my ignorance.
Now you help me unleash the unlimited power of VBScript/Regex, which is still the only implement in Macro Scheduler won't corrupt the Unicode source text.
For the rest of PCRE and EasyPatterns issues, it's hopeless. I give up.
Marcus, thanks for your generous assistance.
- CyberCitizen
- Automation Wizard
- Posts: 724
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia