Forum Discussion
3 Replies
- jbraveChannel SurferAh, I see, roRegex, huh? This should be in the String functions section maybe insted of it's own section?
- FortysevenVisitor
"jbrave" wrote:
Ah, I see, roRegex, huh? This should be in the String functions section maybe insted of it's own section?
Yeah; I was in the middle of writing my own str_replace() function when I hit across that. I was stunned that such a basic tool was absent. Quite happy to find I was wrong. 😉 - TheEndlessRoku GuruFor querystring replacements, you can use the Escape/Unescape methods of the roUrlTransfer object:
Function UrlEncode( query As String ) As String
http = CreateObject( "roUrlTransfer" )
Return http.Escape( query )
End Function
Function UrlDecode( query As String ) As String
http = CreateObject( "roUrlTransfer" )
Return http.Unescape( query )
End Function