Skip to content

Instantly share code, notes, and snippets.

@TLMcode
Last active December 30, 2015 02:39
Show Gist options
  • Select an option

  • Save TLMcode/7764561 to your computer and use it in GitHub Desktop.

Select an option

Save TLMcode/7764561 to your computer and use it in GitHub Desktop.
Begin:
InputBox, var, Test,,, 300, 100
RegExMatch(var,"O)(\d{2,3}).*?(\d{2,3}).*?(\d{2,3}).*?(\d{2,3})", set_)
if !IsObject(set_)
{
Msgbox, 0x10, Whoops!, You must use a set of 4 digits only!`nPlease try again
Goto, Begin
}
For i in SetArr_ := [set_[1], set_[2], set_[3], set_[4]]
For ii in NumArr_ := StrSplit( SetArr_[i] )
Msgbox % "Set_ " i "'s value is: " SetArr_[i]
. "`nIts has " StrLen(SetArr_[i]) " Numbers"
. "`nNumber " ii " is: " NumArr_[ii]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment