I'm making a bot in JavaScript for discord and one of it's commands will be custom commands that can give roles,
so I have a string from this: "{role:ROLE NAME}" and I would like to parse "ROLE NAME" out of this, I've looked into RegEx but I'm a little bit stuck
I was wondering if anyone has any suggestions, Thanks
EDIT: Just to say the { is just a symbol not JSON, it could be % or £