Ok i know that in vb i can just at a reference but this isn't in vb6 it's in a different application that uses code similar to VBA. so i need to do some regular expression testing and i'm doing the following and if i use the following pattern

(?<!,)\d{12, 20}(?!,)

it throws an error, but if i use something like
\d{12, 20}
it works fine... so does VBScript.RegExp not support look-ahead, behind ect.

VB Code:
  1. '========================================================================
  2.    'Functionality to check if tracking, order, pick tkt numbers and division
  3.    'seem to be truely valid
  4.    Dim regex As Object
  5.    Set regex = CreateObject("VBScript.RegExp")
  6.    regex.IgnoreCase = True
  7.  
  8.    'Test OrderNo
  9.    If Not IsNumeric(KfxOrderNo) Then
  10.       bOrderNoValid = 0
  11.    Else
  12.       'Test expression
  13.       regex.Pattern = "(?<!,)\d{12, 20}(?!,)"
  14.       Dim xOrderNo As String
  15.       xOrderNo = "tt123456789012tt" 'KfxOrderNo
  16.       If Not regex.Test(xOrderNo) Then
  17.          msgbox "shouldn't be here"
  18.          bOrderNoValid = 0
  19.       End If
  20.    End If