Reputation: 4941
im handling emails through email handler , i need to strip off 2 things in each email Incoming
BF00
usually it will be one wordthis email including
and end Thanks for you cooprate
between these need to bed stripped offI used
\n this email including \n.*
and
^\w+
did not help
any tips
Upvotes: 0
Views: 64
Reputation: 174706
Use the below pattern to match the strings you want to remove.
\bBF00\S*|(?:this\s*email\s*including).*?(?:Thanks\s*for\s*you\s*cooprate)
Upvotes: 1