the format of the input string is >> [https://thisisurl.com] This is Name how to extract “https://thisisurl.com”, and “This is url” attributes from it where the url attribute is given in brackets [???] and remaining text is the name attribute I want a function that can do this task for me Answer You can use escape character for this as