Fix RegExp crash

See http://rainmeter.net/forum/viewtopic.php?f=14&t=19573