AutoPepe Posted September 10, 2013 Share Posted September 10, 2013 UDF or library to manage with datas and hours I would like do an utility to transform character chains according certain rules. For example : *** JOSE *** September 10, 2013 at 7:32pm be able to automatically "translate" to 10.09.2013.19.32 or similar outputs. Do you know such UDF or library ? Best Regards Traducción AutoIt al Español. http://autoitespa.espanaforo.com/forum.htm . Visita el foro de AutoIt en español http://www.emesn.com/autoitforum/. I am a simple user, not a programmer. Link to comment Share on other sites More sharing options...
corgano Posted September 10, 2013 Share Posted September 10, 2013 <Date.au3> may help you, but for the most part you may be able to use stringregexp() if it comes in a regular format RegExr is a very good tool for testing regular expressions - http://gskinner.com/RegExr/ $s = "*** JOSE *** September 10, 2013 at 7:32pm" $array = StringRegExp( $s , "(?i)(\w*?)\s\s?(\d\d?).*?(\d\d\d\d).*?(\d\d?):(\d\d?)([ap]m)?",3) ;$array[0] = month (string, you'll have to change it to decimal) ;$array[1] = day (num) ;$array[2] = year (num) ;$array[3] = hour (num) ;$array[4] = min (num) ;$array[5] = am / mp (string) 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
water Posted September 10, 2013 Share Posted September 10, 2013 Maybe this >date/time convert UDF helps. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted September 10, 2013 Share Posted September 10, 2013 Or >this one. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now