#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "(?mi)(?!(?<=pla)ng)(?!(?<=a)nlag)(?!(?<=i)nvest|nfo|nfra)(?!(?<=zuku)nft)nn?(?!finiti)[bcfgjklmpqrsvwxy](?!chaft|ormatio|eg(t|ung|e|s|itiv))"
Local $sString = "MATCH:" & @CRLF & _
"" & @CRLF & _
"nonsense|waning|cannnnns|banger|fancy" & @CRLF & _
"" & @CRLF & _
"" & @CRLF & _
"NO MATCH:" & @CRLF & _
"" & @CRLF & _
"plang|anlag|invest|warn|zukunft|design|mënsch|längt|telefo|termin|ioun|immun" & @CRLF & _
"" & @CRLF & _
"plangens " & @CRLF & _
"pplang|clanlags|infrared|amazukunft" & @CRLF & _
"" & @CRLF & _
"cannon|wand|hone|banana" & @CRLF & _
"" & @CRLF & _
"BUT: Zukunftsunpassung (should match 'unpass' but not 'zukunft' and not 'ung')" & @CRLF & _
"Eegenschaftsunklang (should match 'Unkl' but not 'Eegenschaft' and not 'klang')"
Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYGLOBALFULLMATCH)
Local $aFullArray[0]
For $i = 0 To UBound($aArray) -1
_ArrayConcatenate($aFullArray, $aArray[$i])
Next
$aArray = $aFullArray
; Present the entire match result
_ArrayDisplay($aArray, "Result")
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm