Forum Discussion
FICO
14 years agoCommunity Manager
Extract String
Extract String Hi All, My input string is BC89RACJ0098457632. I've to extract the string and to store as like A=BC B=89 C=RACJ D=0098457623 and i've to check, whether A & C is a string and ...
FICO
14 years agoCommunity Manager
hope this might help...
StrObject is an Array of string defined at global level
str is a string initially "BC89RACJ0098457632";
resultstr is some fixed array of string. resultAlpha is some fixed array of string.FinalResultStringArr is some array of string.
FinalResultNumberArr is some fixed array of integer. regexAlphabet is some RegularExpression; regexAlphabet = regularExpression("[0-9]");regexNumber is some RegularExpression;
regexNumber = regularExpression("[A-Z]");resultstr = regexAlphabet.split(str);
resultAlpha = regexNumber.split(str);for each string in resultstr do
{ print(it); StrObject.append(it); } for each string in resultAlpha do { print(it); }Related Content
Related Content
- 0Views0likes1Comment