Hi, I'm trying some string manipulation using rege...
# server
i
Hi, I'm trying some string manipulation using regex's, but I'm not getting the expected output
Copy code
var myString = "/api/<user_id:int>/"
myString.replace(Regex("<user_id:int>"), "(\\d+)")
this should give me something like
/api/(\d+)/
but instead I get
/api/(d+)/