Forum Discussion
FICO
15 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 B & D as an integer ?
give some ideas to do this..
Thanks & Regards,
MohKum
1 Reply
- FICOCommunity Manager
Hi,
I will assume that the string is fixed lenght since that is what you're example shows and you did not show otherwise, so the solution would be to use the substring method to pull out the sub-pieces of your string into the A,B,C,D strings, then you can use a regular expression to validate that the new strings contain the valid types of values. The built in Blaze documentation and/or PDF manuals that were installed with the product show how to do this.
Tom
Business Rules Consulting, Inc.
Related Content
Related Content
- 0Views0likes1Comment