Posts: 32
Threads: 20
Joined: Mar 2011
Reputation:
0
Hi Folks,
while I run my script I am getting output like as Test_9UP_ab_UNIT.
In my output the value 9 and ab are changing dynamically so, please can any one give me the regular expression for the above string.
Thanks and Regards,
Suresh D
Posts: 257
Threads: 9
Joined: Oct 2011
Reputation:
2
Assuming UP is always preceeded by a anumber between 0-9 and _Unit preceded by two characters
Test_[0-9]UP_[a-z][a-z]_UNIT
if this doesn't help
try
Test.*
Posts: 32
Threads: 20
Joined: Mar 2011
Reputation:
0
Hi Ravi,
You are giving regular expression for 9 and ab but in my output sometimes the value may be 10,11,...... and ab,abc,abcd,azfdg,....... etc.these values are changing dynamically so, please provide the regular expression for given string.
Posts: 257
Threads: 9
Joined: Oct 2011
Reputation:
2
Well then .....Test.*...... should have helped.
Posts: 32
Threads: 20
Joined: Mar 2011
Reputation:
0
It's working good, Thanks Ankesh.
Posts: 10
Threads: 0
Joined: Dec 2011
Reputation:
0
test_\[1-9][0-9].*up_\[a-z][a-z]_unit