How to restrict matches to the first 5 lines of an email body using regex in GAS [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . I'm using the following script which is working correctly to pull 2 fields out of an email body. This is causing the script execution time to increase significantly due to the amount of content in the body. Is there a way to make this search through only the first 5 lines of the email body? First lines of e-mail: