glthornton
Programmer
Hi,
I'm trying to use Javascript to determine the number of instances of a carot (^) is located within a single string. Here is an example:
Once I know the number (3 for the above example), then I'll use the Split command to break them down into an array and then put the pieces back together into another string (with a different format like '000100^Bombay^Doctor^^^').
Can anyone tell me how I may go about doing this?
Kind Regards. Glenn
I'm trying to use Javascript to determine the number of instances of a carot (^) is located within a single string. Here is an example:
Code:
000100^Bombay^MD^Doctor
Once I know the number (3 for the above example), then I'll use the Split command to break them down into an array and then put the pieces back together into another string (with a different format like '000100^Bombay^Doctor^^^').
Can anyone tell me how I may go about doing this?
Kind Regards. Glenn