@JickNov 23.2008 — #[CODE]new RegExp('/^wd{8}$/')[/CODE][/QUOTE]I understand the [FONT="Courier New"]d{8}[/FONT] part. That should mean 8 digits. I also understand [FONT="Courier New"]^[/FONT] for the beginning of the string and [FONT="Courier New"]$[/FONT] for the end of the string but, the [FONT="Courier New"]w[/FONT] part is confusing me. It seems to me that the slash should go before the [FONT="Courier New"]w[/FONT] like [FONT="Courier New"]w[/FONT] which comments out the [FONT="Courier New"]w[/FONT] so the regex doesn't try to interpret it but rather leave it alone. But, the way you have it is [FONT="Courier New"]w[/FONT]... Is that something I'm not aware of or just a typo? Because if it is a typo then that is probably the reason it's not working for maitopoika.