You need to sign in to do that
Don't have an account?
Justin Cairns 14
Starts with Alpha or Starts with Numeric
Is there a way to write logic that can determine if a value starts with any alpha character or any numeric character? Example would be we want to know if a string begins with an 2 alpha characters. Or we want to know if it begins with any 3 numeric values. Or a combination.
@@##### So this would indicate the string should start with any 2 alpha and then have 5 numeric. This will be used in an APEX batch process uses a rules table to determine if records meet one of the defined criteria. So we would need a way to define the mapping and then a way to check it in APEX. Any help would be appreciated. Thanks.
@@##### So this would indicate the string should start with any 2 alpha and then have 5 numeric. This will be used in an APEX batch process uses a rules table to determine if records meet one of the defined criteria. So we would need a way to define the mapping and then a way to check it in APEX. Any help would be appreciated. Thanks.
Below pattern/matcher should help you.
Use below pattern to check for string starting with 2 alphabets followed by 5 numeric characters.
All Answers
Below pattern/matcher should help you.
Use below pattern to check for string starting with 2 alphabets followed by 5 numeric characters.