I use regex to add markup to my website and I would like for **string** to only make the string bold if the string and asterisks are not between four brackets like so: [[**string**]] in this case the four asterisks and the string should stay the same and not dissapear or turn bold. I hope this is possible with regex.
For detecting when a string is between four asterisks I use this regex /**(.+?)**/ And for detecting when a string is between fourd brackets I use /[[(.+?)]]/s