Thanks for the quick reply. It works great.....
One more thing if it's possible
We may have....
11.00 Football 8-10yrs
12.00 Football 5+yrs
Is there any way that it can be coded so the grep ignores anything after 'football' on that line and still runs the script to add the descriptor.
I just need to workout how to apply different styles to each line and it will be perfect. I should be able to muddle through that though.
Is there a way to 'batch process' a group of grep styles to save me doing them one at a time?
Thanks again for the solution, should save us some time!
Rather than (.+\r.+\r) I think (.*\r.+\r) which should work for cases where the is text following football as well as for cases where there is not, and I think maybe you need a ? after to limit to the shortest match.
I haven't tested any of this -- just thinking out loud...
Thanks for all your help. I've managed to get something working to speed things up. Peter, the different code did work as you thought and it recognises if there is or isn't a age range.
Just need to find out how to run a batch of lots of different grep actions and it will be perfect