I should have made my question and example clearer. I give a clearer example:
<a href=“link1”>1. THIS SOFTWARE IS PROVIDED “AS IS”, WITHOUT</a> <a href=“link2”>2. PERMISSION IS GRANTED TO ANYONE TO USE THIS</a> ... <a href=“link20”>20. REDISTRIBUTIONS OF SOURCE CODE (IN WHOLE OR</a> ... <a href=“link35”>35. REDISTRIBUTIONS IN BINARY FORM (COMPILED</a> ... <a href=“link67”>67. ALTERED VERSIONS: INCLUDING, BUT NOT LIMITED TO</a> And greped to: <a href=“link1”>1. This Software Is Provided “As Is”, Without</a> <a href=“link2”>2. Permission Is Granted To Anyone To Use This</a> ... <a href=“link20”>20. Redistributions Of Source Code (In Whole Or</a> ... <a href=“link35”>35. Redistributions In Binary Form (Compiled</a> ... <a href=“link67”>67. Altered Versions: Including, But Not Limited To</a> The length of the sentences is different in each line. Saludos, Francisco -- Lic. Francisco A. Hirsch https://www.fiscaldemesa.com.ar <https://www.fiscaldemesa.com.ar/> Twitter: https://twitter.com/fiscaldemesa > On 19 Apr 2021, at 00:39, [email protected] wrote: > > How to grep a list of hyperlink to capitalise the words > <http://groups.google.com/group/bbedit/t/8d97c52bd502f542?utm_source=digest&utm_medium=email> > Francisco Hirsch <[email protected]>: Apr 18 01:44PM -0300 > > I have a text like this” > <a href=“link1”>1. TEXT ONE</a> > <a href=“link2”>2. TEXT TWO</a> > …. > <a href=“link30”>30. TEXT THIRTY</a> > > And I want to to convert it to: > <a href=“link1”>1. Text One</a> > <a href=“link2”>2. Text Two</a> > …. > <a href=“link30”>30. Text Thirty</a> > > Is it possible to do a grep magic or Text Factory? > Saludos, > Francisco > -- > Lic. Francisco A. Hirsch > https://www.fiscaldemesa.com.ar <https://www.fiscaldemesa.com.ar/> > <https://www.fiscaldemesa.com.ar/ <https://www.fiscaldemesa.com.ar/>> > Twitter: https://twitter.com/fiscaldemesa <https://twitter.com/fiscaldemesa> > David G Wagner <[email protected]>: Apr 18 11:49AM -0700 > > Not pretty, but if the input you are looking at is consistent then I got this > to work. Unsure on the 21 thru 29 if that was the format you wanted, since > you did not show that portion... ;) > > Find: > > ^(<a\s+href.+\>\d{1,2}\.\s{1,})TEXT\s{1,}([a-zA-Z])([a-zA-Z-]+)(\s{0,})(\<\/a\>) > > Replace: > \1Text \u\2\L\3\E\4\5 > > > Back to top <x-msg://2/#digest_top> > You received this digest because you're subscribed to updates for this group. > You can change your settings on the group membership page > <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/bbedit/join>. > To unsubscribe from this group and stop receiving emails from it send an > email to [email protected] > <mailto:[email protected]>. -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/3AA7D50D-F929-4769-900D-A6329BE7E1AB%40gmail.com.
