Posts: 32
Threads: 20
Joined: Mar 2011
Reputation:
0
12-08-2011, 05:53 PM
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: 10
Joined: Oct 2011
Reputation:
2
12-08-2011, 08:34 PM
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
12-13-2011, 09:39 AM
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: 10
Joined: Oct 2011
Reputation:
2
12-13-2011, 03:29 PM
Well then .....Test.*...... should have helped.
Posts: 32
Threads: 20
Joined: Mar 2011
Reputation:
0
12-16-2011, 09:13 AM
It's working good, Thanks Ankesh.
Posts: 10
Threads: 0
Joined: Dec 2011
Reputation:
0
12-27-2011, 04:19 PM
test_\[1-9][0-9].*up_\[a-z][a-z]_unit