CodeTinkerer Posted April 3, 2015 Posted April 3, 2015 Hi again!, How would I go about Extracting only the numbers and the colon for time from "AVAIL:13:20" ?
Kyan Posted April 3, 2015 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
iamtheky Posted April 3, 2015 Posted April 3, 2015 msgbox(0, '' , StringRegExp("AVAIL:13:20","\D*(.*)",3)[0]) ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
AndyG Posted April 4, 2015 Posted April 4, 2015 Hi, an other one... $split=stringsplit("AVAIL:13:20",":",2) Msgbox(0,0,$split[1]&":"&$split[2])
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