Jump to content

wolfh3art

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Portugal

Posts posted by wolfh3art

  1. What have you got so far? and will either of these help!

    KB\d{6}\.exe

    or

    KB[0-9]{6}\.exe

    thanks to all for the examples, this is what i was looking for ("kb[0-9]{6}.exe").

    I was using complex syntax and vbscript also uses simple... like this one.

    Dim objRegExp

    Set objRegExp = New RegExp

    objRegExp.Pattern = "kb[0-9]{6}.exe"

    objRegExp.IgnoreCase = False

    Dim strVariable

    'strVariable = "kb987653.exe"

    strVariable = "kb98763.exe"

    If objRegExp.Test( strVariable ) Then

    wscript.echo "Correct File"

    else

    wscript.echo "InCorrect File"

    End If

×
×
  • Create New...