Ok some confusion, will explain again. I need to use below syntax in email. i am not able to pass context field as replaceAll expecting string. So original question how do i pass context field here
Use it on the following lines as mentioned previously as traject is an array object and it needs to be iterated over. eventId needs to have backticks.
Example
{{#each context.journey.events.`eventId`._tenant.npoEvent.traject as |s|}}
{%= replaceAll(s.discountedPrice,"([0-9]+\\.[0-9]{2}).*","$1") %}
{{/each}}
Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.