I am in the process of a migration between CMS and the old forum I used embedded attachments using [attachment=attachment#]imageURL[/attachment]
and I want to update this where it changes the old attachment tags into [img][/img]
Getting the [/img]
tag replaced was easy given that it's a single string. But my problem is that there is a unique numerical value with a range from 1-4000 in the first part of the shortcode eg: [attachment=3789]picture.jpg[/attachment]
Is there a way for me to run a similar replace query that either ignores all the numbers in the first tag and just replaces it, or perhaps something that removes the entire number rage within that part of the string.
I am unable to replace all numerical ranges in that field because the image names may have numerical values in them, so it will need to replace the numerical range only within that tag.