Q:

SAS prxchange to add a space into a string with a special characters

Hi I'm trying to replace  125MG/5ML with 125MG/5 ML. 
Here's my regex but its not inserting a space between 5 and ML. 
How do I add a space and keep the '/' . 
("s/125MG\/5ML/125MG\/ 5 ML /i",-1,OLD_WORD)

Thanks

A:

If you actually need something more general, such as inserting a blank between digits and ML following digits+MG/, then the following may fit your bill:
data want;
input var $50.; 
new=prxchange('s/(\d+MG\/\d+)ML/$1 ML/io',-1, var);
cards;
125MG/5ML adkdk
12MG/3ML
dkljsza 2455125MG/17ML
;

