I have a string Global Variable called help_url that looks like this "https://www.example.com/site#1" (the exact site URL changes during gameplay). Construct forces me to put double quotes around it since it has a # character.
Users are supposed to be able to click on a UI button and then it takes them to the help_url in a new window. Now I am setting up the Browser action for when a user clicks on the button, which means I have to strip out those double quotes, so I'm trying to use:
But Construct rejects this because it wants me to close the double quoted string in the REPLACE spot. I'm not great at REGEX, but I've also tried approaching from a different angle with my URL using
RegexMatchAt(help_url, "/[a-zA-Z0-9]*-[a-zA-Z0-9]*/", "", 0)
But that doesn't work either (the page opens to about:blank). Can anyone tell me what I'm doing wrong or suggest a better way?