Hey guys,
I'm getting a directory listing of folders within a folder on the network with _FileListToArray then I need to search through that list and determine which folder is named with the largest version number.
The problem I'm having is with weeding out folders that are not named in the version numbering naming convention. That naming convention is: must only contain numbers and full stops like 1.2.3 or 2.8.14 and there can be two or more sets of numbers eg 1.2 or 1.2.3 or 1.2.3.4 etc.
Would someone please tip me off on whats wrong with my regex?
#include <array.au3>
Local $array = ["1.7.8","1.7.9","1Goat.Eating.Pastrami.2.3","128","1.7.10","TriggeredLefty.69"]
for $x = 0 to Ubound($array)-1
if StringRegExp($array[$x],"[\d\.^\w]+") = 1 Then ;<<<<< y u no work!!!
$aThisEl = StringSplit($array[$x],".",2)
_ArrayDisplay($aThisEl,"This version")
EndIf
Next