I have a list of expression language tools:
https://regexr.com/ <https://regexr.com/> with PCRE mode
https://www.debuggex.com/ <https://www.debuggex.com/>
https://extendsclass.com/regex-tester.html 
<https://extendsclass.com/regex-tester.html>

but would love to know if there is a tool where a person could give sample 
input (like your filename) then simply trial and error test at the expression 
language until you got the output you desired in realtime.  Does this exist?


On Oct 4, 2022, at 9:19 AM, James McMahon <jsmcmah...@gmail.com> wrote:

I have an incoming filename that includes the pattern 
prefix20221004035958postfix. I need to convert that yMdHms to seconds since the 
epic within that filename. 

This is the expression I attempt to use, but it seems to choke on the capture 
group reference:
filename         ${filename:replaceFirst('([0-9]{14})', 
'$1:toDate("yyyyMMddHHmmss","UTC"):toNumber()'}

How do I get this to work, applying expression language functions to the 
capture group?
Thanks.

Reply via email to