Copy link to clipboard
Copied
Looking for an easy way to change a hyphen between dates to a long dash. e.g. 1- to 1–, etc from 0-1.
But I don't want to change hyphens that appear between numbers in URLs, or between number and word (e.g. 21-year-old) Just dates, like 2001-2008 --> 2001–2008 and also between page ranges (
The Journal of Economic History, 43, no.1 (1983): 89-100. -->
The Journal of Economic History, 43, no.1 (1983): 89–100.
… Excluding first Urls,
Find: \d\K-(?=\d)
Replace by: –
(^/) The Jedi
Copy link to clipboard
Copied
In the Find/Change Dialogs, Grep tab you can use the following
Find What :- (\d{4}) - (\d{4})
Change To :- $1 – $2
-Manan
Copy link to clipboard
Copied
… Excluding first Urls,
Find: \d\K-(?=\d)
Replace by: –
(^/) The Jedi
Copy link to clipboard
Copied
Copy link to clipboard
Copied
@Peter Kahrel wrote a great book. I think that page has a link for purchasing.