To generate an alphanumeric string of desired sequence

0
Hi, I used the Random string java action for generating the length of the string, but i am not able to generate the string of desired alphanumeric string such([A-Z]{6}[0-9]{1}[A-Z]{2}[0-9]{1}). Can someone help me out with how to generate this with a regular expression.
asked
1 answers
2

hii Venu Mohan,

you can generate whole desired string in multiple stages and at last concatenate it.

as i can see in your RegExp 

you want first 6 character alphabets 

then 

one digit 

then 

two characters and 

then 

one digit

so generate all in steps in java actions and stored in variables and at last concatenate at the last and return it.

 

answered