Copy link to clipboard
Copied
Question for the group regarding GREP. I need to move the price of multiple items on a menu from the item to the description (See below) using a GREP code. I was able to create one a few years ago, but I can't get it to work any more. Any help is great ly appreciated!
Exaple:
Turn this:
Club Sandwich 6.99
Bacon, Lettuce, Tomatoes, Mayonnaise on Toast
Into this:
Club Sandwich
Bacon, Lettuce, Tomatoes, Mayonnaise on Toast 6.99
Try this...
Find:
(.+)\h(\d+\.\d\d)\r(.+)\r
Change to:
$1\r$3\s$2\r
Copy link to clipboard
Copied
Try this...
Find:
(.+)\h(\d+\.\d\d)\r(.+)\r
Change to:
$1\r$3\s$2\r
Copy link to clipboard
Copied
Hi JC,
Not truly good for 2 reasons:
• you forget an eventual end of story;
• if the first para uses a para style and the following another different one, …
This regex is simpler and doesn't encounter these 2 issues:
(\h[\d.]+)(\r.+$)
$2$1
(^/) The Jedi
Copy link to clipboard
Copied
It’s good, but not always! 😉
Copy link to clipboard
Copied
This is awesome. Both of them work great for what I need.
Thank you both so much!