How to extract specific parts of a URL and replace with different data
问题 I have a specific type url and i need to identify some parts of it and replace with some data, url would be www.something.com@param1={{^User Name^}},param2={{^user id^}} ,.... What i need to do is, identify {{^User Name^}} and {{^user id^}} and replace with my values, Anybody have an idea to do this with flex? A friend of mine told me to use RegExp for this, but I'm clueless about how to use it. 回答1: Something like this might work, no expert on RegExp tho. var s:String = "www.something.com