Jump to content
UBot Underground

Recommended Posts

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?

Link to post
Share on other sites

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")

 

Cheers

Dan

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...