On Friday, 6 August 2021, at 2:22 AM, fwrm wrote:
> The command ,x/".+"/ would select every string that begins with a double
> quote, has one character or more after that, and ends with a double quote. If
> we wanted to select only the characters inside double quotes, we could reject
> the double quote character by adding the command y/"/ to the previous one. Or
> we can also only select the quotes by adding x/"/ instead, if we wanted to
> change double quotes (that surround one or more characters) to single quotes
> we could do: ,x/".+"/ x/"/ c/'/ or to capitalize all letters inside quotes
> (with the unix tool tr(1)) we could do: ,x/".+"/ y/"/ | tr [:lower:] [:upper:]
Excellent examples. Thanks.
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T3107cd3bc536dc63-M202c739cc540c35cc01f7c22
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription