You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately I can't find a way to escape the special characters in the default value. I have tried using the backticks characters but what Micronaut reads is `(\d{4-\d{2}-\d{2}).([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}).cde.json`} which is incorrect.
Does anyone have any idea how I can read the regex value corectly?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone :)
I have the following property which includes an env. variable and a default value in my application.yml file
fileRegex: ${FILE_REGEX:(\d{4}-\d{2}-\d{2}).([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}).cde.json}
Unfortunately I can't find a way to escape the special characters in the default value. I have tried using the backticks characters but what Micronaut reads is `(\d{4-\d{2}-\d{2}).([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}).cde.json`} which is incorrect.
Does anyone have any idea how I can read the regex value corectly?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions