+1 Bruce! On Mon, 15 May 2023 at 16:40, Bruce Van Allen <[email protected]> wrote:
> > On May 15, 2023, at 3:13 AM, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > > > Thank you once again, Kaveh - that works perfectly! > > Best wishes, > > Yay! > > For future reference, the best way to get help is NOT to try diagnosing > the problem into abstractions, but rather to provide a few before and after > examples of the specific text you're dealing with, plus any comments needed > to clarify your goal for the transformation. > > Also, don’t worry abut boring us - the people here who like to answer > questions do it because we enjoy puzzle-solving and exercising BBEdit’s > capabilities. > > — Bruce > > _bruce__van_allen__santa_cruz_ca_ > > > > > > > On May 15, 2023, at 3:13 AM, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > > > Thank you once again, Kaveh - that works perfectly! > > Best wishes, > > Andy > > > > On Monday, 15 May 2023 at 09:49:21 UTC+1 Kaveh Bazargan wrote: > > Try this one. It matches any characters before colon, but not <> > > > > On Mon, 15 May 2023 at 09:41, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > Thanks Kaveh, > > Look at this another way... > > I want to search within <p> and the colon: > > > > If I use .+? it picks up everything, including stuff I don't want. > > Using <p>(\w+): works brilliantly as long as there are no numbers or > digits in the line of text - but I want to include these. > > > > So how can I search for words or numbers etc but no left or right > arrows in the result such as < or >? > > (I WOULD also like to include punctuation, such as exclamation and > question marks, brackets, etc, - if I can). > > Thanks - Andy > > On Monday, 15 May 2023 at 09:22:25 UTC+1 Kaveh Bazargan wrote: > > Hi Andy > > > > I suggest you give several examples of what should be picked up and made > bold, and several of what should not be. Still not clear for me. ;-) > > > > On Mon, 15 May 2023 at 09:19, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > My grateful thanks to those who have patiently tried to help, but I > think we're over-complicating it. > > (My apologies once more). > > It occurred to me just now that what I'm looking for, is lines of text > and digits (but not html) between <p> and the colon: > > Searching for <p>(\w+): works well if there are no digits - so how can I > include text like 22nd, 1st, or even a number on its own (1234 for > example?). > > > > I try to make my posts clear, but equally, I don't want to bore people > with excess detail. > > > > On Monday, 15 May 2023 at 07:45:43 UTC+1 Kaveh Bazargan wrote: > > Ah, so no digit dependency at all, right? Does this work: > > > > Search: <p>(.+?):(.+)</p> > > replace: <p><strong>\1</strong>:\2</p> > > > > On Sun, 14 May 2023 at 23:05, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > No Kaveh - Unfortunately Fletcher's reply doesn't help. > > I'll try to clarify. > > > > In this case, I want to make bold parts of some lines of text which > begin with <p> up to where the bold part will end at a colon (:) Any text > after the colon won't be bold. > > > > <p>All this text will be bold, as until the first colon: The text after > the colon will be normal.</p> > > > > <p><strong>123</strong>Any lines which begin as this one does, will not > be changed.</p> > > (The number being any combination of 1-3 digits). > > > > I hope that's more clear. Apologies for the lack of clarity. > > Andy > > > > On Sunday, 14 May 2023 at 20:11:38 UTC+1 Kaveh Bazargan wrote: > > Sorry, still not clear for me. Does Fletcher's answer work? > > > > Are you saying there are specific numbers you do not want to match, say > > <strong>135</strong> > > but ones that you do want to match, say > > <strong>137</strong> > > ? > > > > Otherwise can you explain further? > > > > On Sun, 14 May 2023 at 18:09, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > Yes, of course, Kaveh - thanks for your speedy reply - again! > > I got this the other day (you helped with it) to find a line of text (or > text and numbers) which end with a colon and a space - > > <p>(.+?)\: > > It's brilliant, but there are occasions when I want to avoid a pattern > such as <strong>123</strong>. The number varies, (from 1 to 999) and there > may be other numbers, but I want to include those. In other words, avoid > lines with numbers within the <strong></strong> tags. > > > > At other times, I want to avoid a certain word (or html). > > I hope that makes sense! > > Andy > > > > On Sunday, 14 May 2023 at 17:57:20 UTC+1 Kaveh Bazargan wrote: > > can you give examples of strings you want to match and strings you don't > want to match? > > > > On Sun, 14 May 2023 at 17:29, 'Andy Nickless' via BBEdit Talk < > [email protected]> wrote: > > Something that I've been unable to find out is how to skip searching > something which already contains a simple pattern: > > For instance, to find a number consisting 1-3 digits I use (\d{1,3}) - > but how can I AVOID a number of up to 3 digits? > > Thanks in advance - > > Andy > > > > -- > > 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/4455d2a7-6efe-4183-903e-ea1baa8e091dn%40googlegroups.com > . > > > > > > -- > > Kaveh Bazargan PhD > > Director > > River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● > @[email protected] > > Accelerating the Communication of Research > > > > > > -- > > 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/1adbf484-f522-457c-ae49-6558ec336b19n%40googlegroups.com > . > > > > > > -- > > Kaveh Bazargan PhD > > Director > > River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● > @[email protected] > > Accelerating the Communication of Research > > > > > > -- > > 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/e8c65a54-7efb-44e5-9bbd-06d306f7aa8en%40googlegroups.com > . > > > > > > -- > > Kaveh Bazargan PhD > > Director > > River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● > @[email protected] > > Accelerating the Communication of Research > > > > > > -- > > 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/6c97dff0-bc37-4ddf-a5db-fe7c1ca23484n%40googlegroups.com > . > > > > > > -- > > Kaveh Bazargan PhD > > Director > > River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● > @[email protected] > > Accelerating the Communication of Research > > > > > > -- > > 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/a5ba32c6-41ed-473a-bde1-ed430e31b332n%40googlegroups.com > . > > > > > > -- > > Kaveh Bazargan PhD > > Director > > River Valley Technologies ● Twitter ● LinkedIn ● ORCID ● > @[email protected] > > Accelerating the Communication of Research > > > > > > -- > > 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/7705120f-d94a-4b71-80d6-ed5467e82c11n%40googlegroups.com > . > > -- > 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/C88415B1-BCC4-416F-BBE6-ED2A8996B73F%40cruzio.com > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/rivervalley1000> ● LinkedIn <https://www.linkedin.com/in/bazargankaveh/> ● ORCID <https://orcid.org/0000-0002-1414-9098> ● @[email protected] <https://mastodon.social/@kaveh1000> *Accelerating the Communication of Research* * <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop> [image: https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/] <https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>* -- 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/CAJ2R9phPVrNStk05DkKMohKOcH1PThkjcCLaw51c09itFZPvUA%40mail.gmail.com.
