yonatankra 1 Posted January 24, 2014 Report Share Posted January 24, 2014 Hi,I'm trying to use the regular expression functions, but they seem not to do anything.I might use them wrong.Here's my code: set(#test, "28/05/201323:00", "Global")set(#test2, $replace regular expression(#test, "[0-9]{2}[\\/][0-9]{2}[\\/][0-9]{4}", "I like"), "Global")set(#test3, $find regular expression(#test, "[0-9]{2}[\\/][0-9]{2}[\\/][0-9]{4}"), "Global") What I would expect is:#test2 => I like23:00#test3 => 28/05/2013 (there's no space between the date and the time for a reason). Any idea why this doesn't work? Quote Link to post Share on other sites
Bot-Factory 602 Posted January 24, 2014 Report Share Posted January 24, 2014 set(#test, "28/05/201323:00", "Global")set(#test2, $replace regular expression(#test, "[0-9]\{2,2\}\\/[0-9]\{2,2\}\\/[0-9]\{4,4\}", "I like"), "Global")set(#test3, $find regular expression(#test, "[0-9]\{2,2\}\\/[0-9]\{2,2\}\\/[0-9]\{4,4\}"), "Global") CheersDan 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.