Hi @AndreasGrosse ,
In PowerApps, you could use regular expression when compare data.
The common predefined patterns like ",.*%#" all work in PowerApps.
However, please note that regular expression could only refer constant value as format.
The data that you entered in textinput need to be used as Textinput.Text.
This is not constant value.
So using regular expression not work for this situation.
Here are some examples that could use regular expression to compare:
1)IsMatch( TextInput1.Text, "hello", Contains & IgnoreCase )
2)IsMatch( "<https://microsoft.com>", "(ht|f)tp(s?)\:\/\/\[0-9a-zA-Z\]([-.\w]\*[0-9a-zA-Z])\*(:(0-9)\*)\*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]\*)?" )
//all the format not contains variable
Here's a doc about regular expression in PowerApps for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-ismatch
In your situation, I suggest you try in or startswith/endwith function.
1)in
Filter(tablename,First(Split(TextInput1.Text," ")).Result in fieldname,Last(Split(TextInput1.Text," ")).Result in fieldname)
2)startswith/endwith function.
Filter(tablename,StartsWith(fieldname,First(Split(TextInput1.Text," ")).Result),
EndWith(fieldname,Last(Split(TextInput1.Text," ")).Result)
)
// since you enter data in the same textinput, so I suggest you use split function to split it to two parts.
Best regards,