Re: Help With Grep Pattern

2017-03-05 Thread Dave
If you install the PCRE libraries you get tons of documentation in HTML and manpage format. It also includes some useful demos and utilities. Of course you can also link to them when you build gnu grep, sed and other programs with PCRE dependencies. http://www.pcre.org -- This is the BBEdit

Re: Help With Grep Pattern

2017-03-04 Thread Ole Kristian Ek Hornnes
Thank you - That one was a good one. Herby bookmarked for later use. - Ole Kristian Ek Hornnes lørdag 4. mars 2017 05.45.38 UTC+1 skrev Steve Piercy følgende: > > Another nice online tool with more features, including an > explanation and highlighting of regex syntax, a larger library > of

Re: Help With Grep Pattern

2017-03-03 Thread Bill Kochman
Thank you Steve. That tool is also very helpful. Even though I have read the BBEdit manual’s section regarding grep patterns a number of times over the years, regex and grep patterns has remained a “mystery language” to me, never fully understanding how to put the pieces of the puzzle together

Re: Help With Grep Pattern

2017-03-03 Thread Steve Piercy
Another nice online tool with more features, including an explanation and highlighting of regex syntax, a larger library of regexes, and an IRC channel is this one: https://regex101.com/ --steve On 3/4/17 at 11:39 AM, wordweaver...@gmail.com (Bill Kochman) pronounced: Hello Ole Kristian,

Re: Help With Grep Pattern

2017-03-03 Thread Bill Kochman
Hello Ole Kristian, Thank you so much for the link. That Regex Pal tool is indeed very helpful to me. Kind regards, Bill K. > On Mar 4, 2017, at 7:08 AM, Ole Kristian Ek Hornnes > wrote: > > Hello, > > I am often using http://www.regexpal.com to test out reg-ex

Re: Help With Grep Pattern

2017-03-03 Thread Ole Kristian Ek Hornnes
Hello, I am often using http://www.regexpal.com to test out reg-ex patterns. This also contains a handy list of codes, and gives you the opportunity to test the reg-ex before using it in BBEdit Search/Replace or Multi File Search/Replace.

Re: Help With Grep Pattern

2017-02-26 Thread Bill Kochman
Hello Tom, Thank you very much for that explanation. Yes, it is very helpful and will help me to write more complex patterns. Earlier this morning I was looking through the greg section of the BBEdit manual, trying to find what I was referring to as a “not operator”. I even checked online,

Re: Help With Grep Pattern

2017-02-26 Thread Tom Robinson
Normally relative links are a better way to run a site — you can move pages to a different host, put them in sub-directories, etc., without changing the HTML. > >> And I'd replace with: >> >> https://www.billkochman.com/Articles/\1 >> >> Jean-Christophe -- This is the BBEdit Talk public

Re: Help With Grep Pattern

2017-02-26 Thread Bill Kochman
Hello Jean-Christophe, Thank you for your assistance. I appreciate it. Using that grep pattern found only ONE relative URL in almost 6,000 HTML docs. Considering how much I have used BBEdit’s multi-file find and replace feature to make global changes to my primary virtual host over the past

Re: Help With Grep Pattern

2017-02-26 Thread Jean-Christophe Helary
Bill, > https://www.billkochman.com/Articles/my-article.html > > https://www.billkochman.com/Articles/;. > If I use this: > > \t\t there because all such lines are prefixed by two tabs. There is not need to check for the presence of tabs since what you want concerns only the URL. Since the

Help With Grep Pattern

2017-02-26 Thread Bill Kochman
Hello again, I want to convert all of my relative URLs to absolute URLs. The problem is that I do not know where the remaining relative URLs are located in my virtual host's folder. I have been reading the grep patterns section of the BBEdit manual, but I still haven't quite understood how to