Forum Discussion

GZRService_Acco's avatar
GZRService_Acco
Qrew Trainee
6 months ago
Solved

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.