Extracting a right part of the delimiter ',' in a string using Regex and Javaxript
This Process will read a string (string has a delimiter ',') from the input dialogue and store them in one variable.
Step1: Input string is entered using Input Dialog.
Step2: It searches for a delimeter ',' in the input string and get the position of the ',' in the given string using Regex.
Step3: substr method is used to get the right part of the string (i.e. Right part of string of the delimeter ',')
Eg: "MechanicMontgomery, Alabama" is the input string. Alabama is right part of the string.
Substr uses the position that is got from Step2
String with comma delimiter
Right part of the string after the delimiter
1 person likes this idea