Right now I have (see pic).. but it does not work. How can I use regex to get the dd part from mm/dd/yyyy
choose the day from the date
Started by ugakebet, Mar 12 2011 10:23 AM
6 replies to this topic
#1
Posted 12 March 2011 - 10:23 AM
I need to select the day from the current date.
Right now I have (see pic).. but it does not work. How can I use regex to get the dd part from mm/dd/yyyy
Right now I have (see pic).. but it does not work. How can I use regex to get the dd part from mm/dd/yyyy
#2
Posted 12 March 2011 - 12:07 PM
Hi try to replace it with this
\b\w{2}/\w{2}/\w{4}\b
#3
Posted 12 March 2011 - 12:54 PM
Hi try to replace it with this
\b\w{2}/\w{2}/\w{4}\b
Hey,
nope it does not work... It simply copies the whole mm/dd/yyyy not the dd portion
#4
Posted 12 March 2011 - 01:44 PM
Another way you can do this by adding to a list from text and using the slash as the delimiter. Then all you would need to do is use list item position 1.
#5
Posted 12 March 2011 - 01:54 PM
#6
Posted 13 March 2011 - 01:01 AM
Another way you can do this by adding to a list from text and using the slash as the delimiter. Then all you would need to do is use list item position 1.
Oh I see you want the day only. Try this
dateonly.ubot 6.54K 14 downloads
thanks guys, both the above should definitely work. But i just find it surprising that regex itself cannot separate the month day or year from a dd/mm/yyyy format. feel for the guys that dont use ubot and simply want to get the month through regex
#7
Posted 13 March 2011 - 07:19 AM
Regex has a search and replace method. If you search the internet you will find a ton of info on it.
John
John
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users














