I will require some help with the RegEx so as to avoid the issue as described below from happening. Tried some variations but it seems to not work for me
P/S. clearly i am not an expert with RegEx yet.
I had the package 'EnhancedPostMasterFilter' installed.
https://opar.perl-services.de/dist/Enha ... lter-5.0.2
So far it works fine except when the users send in mails with unnecessary white spaces as shown below:
Code: Select all
Task: test data
Type of Business: test abc
Service Type: test data 123
Code: Select all
Task:test data
Type of Business: test abc
Service Type: test data 123
The current regex that i have in place, which works fine for the second scenario described above is as follow:
Code: Select all
Task:\s+(?<task>.*?)\s*Type of Business:\s+(?<typeofbusiness>.*?)\s*Service Type:\s+(?<servicetype>.*?)\s
Thanks in advance.