URL manipulation

Hello @ipazin

if i have the follwing URL

https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/**asp**/cids/TXT
https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/**glu**/cids/TXT

i need to change (Replace)

asp => aspirin
glu => glucose

i think your workflow works only if you want to replace the END of any URL but not the middle of it ?

best regards