I am trying to replace multiple delimiters within a single string with a break tag, but the delimiters are not always the exact same or of the same length. The delimiters do follow this pattern when within the string: #[some number];#
For example, I want
49;#Simpson, Homer;#45;#Simpson, Bart
to become
Simpson, Homer
Simpson, Bart
And I want
49;#Simpson, Homer;#45;#Simpson, Bart;#101;#Simpson, Lisa
to become
Simpson, Homer
Simpson, Bart
Simpson, Lisa
I was using the following to remove the first [number];# from the string, but I'm not sure how to replace the rest.
peopleString = peopleString.substring(peopleString.indexOf(";#") + 2);
Thanks!