View Single Post
  #1 (permalink)  
Old September 8th, 2004, 01:06 PM
Dereksam Dereksam is offline
Registered User
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Dereksam
Default Question on Pattern matching using VBscript


I am new to Vbscript. I need to macth a pattern in a string. Ex I need to match startup_qkload_test_8to1_pm_st out of the line below:
call startup_qkload_test_8to1_pm_st > TS0 .X .X .X .0 1X11 .1 1100XX .1 10XX10 ;
I use subRE.pattern="call ([a-zA-Z][\w]+[a-zA-Z]) >" hoping that the matches object will remember only the portion in the parenthesis ([a-zA-Z][\w]+[a-zA-Z]) but it seems to match call startup_qkload_test_8to1_pm_st > when all I want is startup_qkload_test_8to1_pm_st


Reply With Quote