Is this some kind of undocumented bug, or am I having brain gas??
Here is the string...
myStr = "<comment id='234679' author='Bill McKale' created='Wed, 14 Jun 2019 11:56:44 -4000'>'This is not a viable solution. Please read SOP 48824.66A'<comment>"
Here are 4 variations of the pattern syntax...
reObj.Pattern = "^<comment id='([0-9]*)' author='(.*)' created='(.*)'>'(.*)'<comment>$"
reObj.Pattern = "^<comment id='([0-9]+)' author='(.*)' created='(.*)'>'(.*)'<comment>$"
reObj.Pattern = "^<comment id='([0-9]{6})' author='(.*)' created='(.*)'>'(.*)'<comment>$"
reObj.Pattern = "^<comment id='([0-9]{5, 7})' author='(.*)' created='(.*)'>'(.*)'<comment>$"
Why does Debug.Print reObj.Test(myStr) return TRUE for all but the last pattern??
FYI I'm using the Microsoft VBScript Regular Expressions 5.5 library.
Here is the string...
myStr = "<comment id='234679' author='Bill McKale' created='Wed, 14 Jun 2019 11:56:44 -4000'>'This is not a viable solution. Please read SOP 48824.66A'<comment>"
Here are 4 variations of the pattern syntax...
reObj.Pattern = "^<comment id='([0-9]*)' author='(.*)' created='(.*)'>'(.*)'<comment>$"
reObj.Pattern = "^<comment id='([0-9]+)' author='(.*)' created='(.*)'>'(.*)'<comment>$"
reObj.Pattern = "^<comment id='([0-9]{6})' author='(.*)' created='(.*)'>'(.*)'<comment>$"
reObj.Pattern = "^<comment id='([0-9]{5, 7})' author='(.*)' created='(.*)'>'(.*)'<comment>$"
Why does Debug.Print reObj.Test(myStr) return TRUE for all but the last pattern??
FYI I'm using the Microsoft VBScript Regular Expressions 5.5 library.