My string is " 1.1"
which has one tab key at the front and I use the regular expression pattern ^\t
to find it.
But I failed. So what is the VBA regular expression for the tab key?
My string is " 1.1"
which has one tab key at the front and I use the regular expression pattern ^\t
to find it.
But I failed. So what is the VBA regular expression for the tab key?
The regex for this would be (specifically for 1.1) :
^[\t]1\.1
That said, it would be nice to see how you're implementing it in your VBA because, as GSerg says, VBA does not have native regex.
If you want to put a tab character before the "1.1"
in your string you use Char(9) & "1.1"
If you want to find it, it may work. You would also like to try with vbTab