you do know the String type has a Substring method ?
https://msdn.microsoft.com/en-us/library/aka44szs(v=vs.110).aspx[
^]
so in pseudocode (ie rough code thats not really any language except the string Substr and Remove ARE VB)
if barCodeString.Substr(0,2) == '27'
// Put 1st 6 chars of bar code into TextBox 1
TextBox1.Text = barCodeString.Substr(0,6)
// Create a temporary String so as to not alter original
String TempString = barCodeString
// Delete the 1st 6 characters
TempString.Remove(0,6)
// Put the Remainder in TextBox2
TextBox2.Text = TempString
end
Why complicate things with Regular expressions ? you just have to turn what Ive put into proper VB