Only find this post, but my case is more complicated.
I would like an action, first let me input ‘url’,
then find all timestamps,
then combine these strings, ‘[this post](’ + ‘url’ + ‘#=’ + ‘timestamp’ +‘]’,
then replace every timestamps with combined strings.
I try to use GPT to write the script but too difficult for me to adjust the code, could someone help?
Things are a little unclear certainly. In your first post you describe a format for what you want, then make a passing reference to Markdown links (which the format you described was not - look at where the different brackets are). You have switched them around in your latest description, but what Gregg suggested matches against your original example.
So, I think that’s where one problem lies. Check where your square brackets and round brackets (Parentheses) go.
Next, in your replacement, rather than using \1, try using $1 instead as the token for the matched timestamp.
I think that should solve the timestamp being substituted for the character 1.