P
Prakash
Dear Friends,
In my web application i have two textboxes to collect "ORIGIN" and
"DESTINATION" stations. These stations are represented as three letter
code.. We have an option like to provide multiple stations as seperated
by comma(,) or slash(/) operator.
Example Data
Origin BOM, DEL,AUH
Destination LON,BKK
Now the requirement is,
a) Duplicate stations are not allowed in Origin and Destination fields.
Ex.. Origin - BOM, BOM, DEL, AUH, Del
b) Same Stations are not allowed in both Origin and Destination
Ex.. Origin - BOM, DEL, AUH
Destination - AUH, LON, BKK
I hope, it is possible with Regular expressions. But i don't have idea
about how to achieve using regular expression.
Please advice me to solve the issue using regular expression or some
other way.
Regards,
Prakash
In my web application i have two textboxes to collect "ORIGIN" and
"DESTINATION" stations. These stations are represented as three letter
code.. We have an option like to provide multiple stations as seperated
by comma(,) or slash(/) operator.
Example Data
Origin BOM, DEL,AUH
Destination LON,BKK
Now the requirement is,
a) Duplicate stations are not allowed in Origin and Destination fields.
Ex.. Origin - BOM, BOM, DEL, AUH, Del
b) Same Stations are not allowed in both Origin and Destination
Ex.. Origin - BOM, DEL, AUH
Destination - AUH, LON, BKK
I hope, it is possible with Regular expressions. But i don't have idea
about how to achieve using regular expression.
Please advice me to solve the issue using regular expression or some
other way.
Regards,
Prakash