You can grill and season it...
#include <Array.au3>
Local $asInput[2], $asOutput[2][2]
$asInput[0] = "192.168.0.1" & @TAB & "hostname 1" & @TAB & "#some comment about hostname 1"
$asInput[1] = "192.168.0.2 hostname 2 #some comment about hostname 2"
For $string in $asInput
_Output($asOutput, $string)
If @error Then msgbox(64 + 262144, @ScriptName, "Failed to parse '" & $string & "'. Was not TAB or SPACE delimited.")
_ArrayDisplay($asOutput) ; Check Output
Next
Func _Output(ByRef $asOutput, $sString)
Static $x = 0 ; hehe... static-x
$asSplit = StringSplit($sString, "#")
If Not @error Then $sString = $asSplit[1]
If StringInStr($sString, @TAB) Then
$asSplit = 0
$asSplit = StringSplit($sString, @TAB)
$asOutput[$x][0] = $asSplit[2]
$asOutput[$x][1] = $asSplit[1]
$x+=1
Return SetError(0,0,True)
Else
$iSpace = StringInStr($sString, " ")
If Not @error Then
$asOutput[$x][0] = StringRight($sString, StringLen($sString) - $iSpace)
$asOutput[$x][1] = StringLeft($sString, $iSpace - 1)
Return SetError(0,0,False)
Else
Return SetError(1,0,False)
EndIf
EndIf
Return SetError(1,0,False)
EndFunc