I recently learned regex exists and it worked when I used \[.+\]
at this website: https://regex101.com/
I copy pasted that expression in gdscript and I get:
Parse error: Invalid escape sequence
Below is what I have.
var regex = RegEx.new()
regex.compile("\[.+\]") # Parse error here
var result = regex.search(ropePrint)
if result:
print(result.get_string())