Copy link to clipboard
Copied
Hi -
Trying to figure out a quick way to replace a whole lot of date formats from:
Jan. 6. Text
Feb. 22. Text
June 5. Text
to this format:
Jan 6—Text
Feb 22—Text
June 5—Text
It's always at the beginning of a paragraph if that helps?
Find: ^((\w+)\.?)(\h\d+)\.\h
Replace by: $2$3—
Replace by format: "Italic" char style
Best,
Michel, from FRIdNGE
Copy link to clipboard
Copied
I'm by no means a GREP expert, but I'll take a shot at it:
Find:
^(\w+).(\s\d{1,2}).\s
Replace:
$1$2—
Did you need the dates bold as well? You could probably do that as a separate GREP character style.
Copy link to clipboard
Copied
Find: ^((\w+)\.?)(\h\d+)\.\h
Replace by: $2$3—
Replace by format: "Italic" char style
Best,
Michel, from FRIdNGE
Copy link to clipboard
Copied
You're a GENIUS!!!!!! Works like a charm.
Copy link to clipboard
Copied
Thanks for that, Michel; good to learn a better way of doing it! (Also, I'd never known of the \h!)
Best,
Ben