Support Questions
Find answers, ask questions, and share your expertise

how to check if filename contains any digit/numeric in it

Explorer

For routeonattribute I need to check if filename contains any date (any number ) in it

How to check this?

2 REPLIES 2

Expert Contributor

Hi,

If you want to check for number match in the routeOnAttribute. You can create dynamic property called for example "filenameHasNumeric" and set the value to the following expression "${filename:matches('.*\d+.*')}". You can set the routing strategy to  "Route to 'matched' if all matches" to get "matched" or "unmatched" relationships. If that solves the problem please accept it as solution. Thanks

Master Guru

@Elsaa 
Is it a standardized filename structure with a standardized date format?
Can you share examples?

Thanks,

Matt

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.