Lombi 34 Posted March 11, 2011 Report Share Posted March 11, 2011 So I was wondering, it it possible, like in most other regex tools, to pass on variables around during the replace? example search: (.*?)--(.*?)--(.*?) example replace: $1-~-~-$3-~-~-$2 Quote Link to post Share on other sites
UBotBuddy 331 Posted October 22, 2012 Report Share Posted October 22, 2012 Can we get an answer for this from the Regex wizards in here? Quote Link to post Share on other sites
k1lv9h 76 Posted October 23, 2012 Report Share Posted October 23, 2012 Hi, This code worked.With the ? after the * it did not work.Code:set(#test, $replace regular expression("aa--bb--cc", "(.*)--(.*)--(.*)", "$1-~-~-$3-~-~-$2"), "Global") Kevin 1 Quote Link to post Share on other sites
UBotBuddy 331 Posted October 23, 2012 Report Share Posted October 23, 2012 +1 to you. That gets me a bit closer. Buddy Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.