Long time lurker, first time poster! Your tips are really valuable and have taught me what I know till now about GREP, thank you!
I have a tricky text to style and I am having some issues, and need your help.
Example text: 2012 Some product name name, State $50 This is a very impressive young pinot, with tremendous freshness and vitality. Red cherry and spice aromas, fragrant and lifted with hints of coconut and cherry-liqueur. Elegant, medium-weight, fruit-driven and bright, with pinpoint ripeness. Succulent and utterly delicious. It should be long-lived. >1-10 (rating)
96
The text above repeats 50 times with different text, so essentially it's a list of 50 wines.
The resultant text should look like this:
96 # Some product name name, State $50 This is a very impressive young pinot, with tremendous freshness and vitality. Red cherry and spice aromas, fragrant and lifted with hints of coconut and cherry-liqueur.
Elegant, medium-weight, fruit-driven and bright, with pinpoint ripeness. Succulent and utterly delicious. It should be long-lived. >1-10
2012
Explanation: 2012 needs to move from the start to the end and the number 96 should go to the start. I think this is possible with GREP search but not with GREP style. I can style the two paragraphs with NESTED styles based on the period. Using NEXT styles I can repeat it 50 times for each listing.
However, I am having trouble switching the year and the listing number. I want to make it easier for a designer, so that she can use it with minimal number of clicks.
Could you please suggest something easier than using (\d{4})(.*)(\r|\n)(\d\d\r\Z) and replacing with $3$2$1 etc