CodeTinkerer Posted April 3, 2015 Share Posted April 3, 2015 Hi again!, How would I go about Extracting only the numbers and the colon for time from "AVAIL:13:20" ? Link to comment Share on other sites More sharing options...
Kyan Posted April 3, 2015 Share Posted April 3, 2015 (edited) Should do the job$aArray = StringRegExp("AVAIL:13:20","(\d{1,2}:\d{2})",3) consoleWrite($aArray[0]&@lf) Edited April 3, 2015 by Kyan Heroes, there is no such thing One day I'll discover what IE.au3 has of special for so many users using it.C'mon there's InetRead and WinHTTP, way better Link to comment Share on other sites More sharing options...
mikell Posted April 3, 2015 Share Posted April 3, 2015 Msgbox(0,"", StringRight("AVAIL:13:20", 5)) Link to comment Share on other sites More sharing options...
iamtheky Posted April 3, 2015 Share Posted April 3, 2015 msgbox(0, '' , StringRegExp("AVAIL:13:20","\D*(.*)",3)[0]) ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
CodeTinkerer Posted April 3, 2015 Author Share Posted April 3, 2015 Amazing, thanks everyone!! Link to comment Share on other sites More sharing options...
AndyG Posted April 4, 2015 Share Posted April 4, 2015 Hi, an other one... $split=stringsplit("AVAIL:13:20",":",2) Msgbox(0,0,$split[1]&":"&$split[2]) 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