On May 18, 2004, at 3:37 AM, allan juul wrote:
hmm, ok
so if i do one test that actually matches late in my string and later do a test
that would match earlier, the latter will never match ?
i didn't know that; to me it doesn't sound logical. to me i'm doing a complete
fresh test in the regexp so if i had a match in a previous regexp test it
shouldn't matter since the string doesn't change and even the pos() shouldn't
change because to me both are completely "fresh"
Well then, don't use the /g flag - that's what it's for. =)
-Ken
