You could try like this,
How to write this?
Dim pattern as string=(id=\")[A-Za-z0-9]+\"
this shows error.
It's working fine for me.
I think you missed "+" and double quote in your RegEx.
If you give [A-Za-z0-9] it selects single character only.