GZRService_Acco
3 months agoQrew Trainee
Pulling Number out of a string
I am trying to pull out a record ID # from an email subject or email body.
I want:
Input - Re: 4793 - New Ticket -...
Output - 4793
Or
Input -
Should be handled by: Maintenance
Recipients: Maintenance
Ticket #: 4793
Asset ID: empty
Output - 4793
How can I accomplish this with jinja in a pipeline?
I ended up using a splice to take the first 8 characters minus the first 4. It won't work on old tickets, but tickets moving forward will work.
Thanks.