Hi guys, i having a confusion about how string.match() function work.
I saw inside of Yanfly item core, he check for a <TEXT COLOR: x> note match like this:
line.match(/<(?:TEXT COLOR):[ ](\d+)>/i)
but why ?:
it should work without ?: but why did he include it?
if it for checking zero or one of : shouldn't he wrote :? instead?
I saw inside of Yanfly item core, he check for a <TEXT COLOR: x> note match like this:
line.match(/<(?:TEXT COLOR):[ ](\d+)>/i)
but why ?:
it should work without ?: but why did he include it?
if it for checking zero or one of : shouldn't he wrote :? instead?


