Here is the substring I am working with
[sitetree_link%20id=2]
I need to replace all occurrences of %20 that fall between [ ] with a blank space. But obviously if there are %20s outside of [ ] braces, leave them alone…
I’m just learning regex now but this one seems pretty tough. Anyone got a super smart regex for this?
Thanks ๐
You can try this
Explanation