I am new to regex and I am trying to get multiple instances of sections that start and end with a % across a string.
For example, I have the following string:
This happened %Monday% following our forest %trip%. Tomorrow %we will% start packing our things and %return home%.
I am looking to get all the sections that start with % and end with % detected and I cannot seem to get my head around regex… 🙁
I did try a few ways but all it did it selected either everything inside the sentence between first % and last one or just the %.
Thank you.