Filter list with wildcards

In my applicaties there is a list with a field (string) which I want to filter. The format of the strings is like LS-123456 or LS-123456-M12 Now I want to filter the list so that only the strings with the format LS-123456 remains in a new list. Another option would be to filter this in a microflow with a exclusivie spilt. The question is how to do this in Xpath or an Expression?
1 answers

In a microflow you can use the isMatch function to check if the string attribute matches a pattern with regex. See the documentation here