With the spirit of Regex ;Im assuming the chars required are digits if not use . in place of \d
#include <Array.au3>
$String = "8598437769,h1234567" & @CRLF & _
"1339236010,h1234567" & @CRLF & _
"157412635,h1234567" & @CRLF & _
"2310790863,h1234567" & @CRLF & _
"1768878978,h1234567" & @CRLF & _
"1050122245,h1234567" & @CRLF & _
"2867246473,lPX3hR1" & @CRLF & _
"2310790863,h1234567" & @CRLF & _
"1768878978,h1234567" & @CRLF & _
"1050122245,h1234567" & @CRLF & _
"2867246473,lPX3hR1" & @CRLF & _
"2310790863,h1234567" & @CRLF & _
"1768878978,h1234567" & @CRLF & _
"1050122245,h1234567" & @CRLF & _
"2867246473,lPX3hR1"
;Make the Array
$String = StringRegExp( $String, "\d+(?=,)", 3)
If @error Then Exit -1 ;No Match
$String = _ArrayUnique( $String )
_ArrayDelete( $String, 0 )
_ArrayDisplay( $String )
Hope this helps