replace characters in barcode string with regex expression

Viewed 31

Just getting started in regex and would like some advice on replacing characters from a barcode for a filename. We would like the following:

Where the barcode has / filename should have ^

Where the barcode has : filename should have ;

Example barcode: CT228107010M3PRO:S4/T:4/ we would like CT228107010M3PRO;S4^T;4^

Can someone assist me? It would be a good learning experience.

0 Answers
Related