Skip to content

Matching Attachment Name on 2 Criteria #351

Closed Answered by ahochsteger
grafpaper1987 asked this question in Q&A
Discussion options

You must be logged in to vote

@grafpaper1987 nice to see that it's helpful for you! 😄

Your use case can easily be solved using Regular Expressions.
This is the simplest regex that matches the whole filename you want to match: ^.*-FE-.*\.xml$
I created this example on regex101.com so you can play with the regex and different example file names and see which will match and which not.
It also explains the syntax and matching parts of the regular expression.

In case you want to do more with the numbers and characters that are part of the filename you can use Named Capturing Groups that are
able to extract certain parts of the name and make them available for further processing steps (e.g. as part of the drive path or file…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by grafpaper1987
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants