Bill,

> <a href="https://www.billkochman.com/Articles/my-article.html
> 
> <a href="my-article.html
> 
> I want to change all of those relative URLs so that they are preceded by 
> "https://www.billkochman.com/Articles/";.

> If I use this:
> 
> \t\t<a href="(.+)\.html
> 
> It obviously finds all of the current absolute URLs. BTW, those "\t" are 
> 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 relative URLs don't (seem to) include a /, I'd use that pattern to 
look for them:

<a href="([^/]*)$

And I'd replace with:

<a href="https://www.billkochman.com/Articles/\1

Jean-Christophe 

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.

Reply via email to