M
MikeTI
Nov 15, 2009
Hi all
I want to format a string using regular expression.
Regular Expression "[A-Z/]{4} [0-9]{6} [0-9]{1}"
Should format "AAAA1234567" as "AAAA 123456 7"
I have tried Regex.Replace
Dim mRegEx As Regex
Dim mRegString As String = ""
mRegEx = New Regex("[A-Z/]{4} [0-9]{6} [0-9]{1}")
mRegString = Regex.Replace("AAAA1234567", "[A-Z/]{4} [0-9]{6}
[0-9]{1}", "")
MsgBox(mRegString)
Thanks
Mike TI
Hi all
I want to format a string using regular expression.
Regular Expression "[A-Z/]{4} [0-9]{6} [0-9]{1}"
Should format "AAAA1234567" as "AAAA 123456 7"
I have tried Regex.Replace
Dim mRegEx As Regex
Dim mRegString As String = ""
mRegEx = New Regex("[A-Z/]{4} [0-9]{6} [0-9]{1}")
mRegString = Regex.Replace("AAAA1234567", "[A-Z/]{4} [0-9]{6}
[0-9]{1}", "")
MsgBox(mRegString)
Thanks
Mike TI