BBEdit Lite GREP Problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have several thousand relative links with or without slashes in the
front and already corrected absolute links.

I used this pattern with a slash:

<a href=""/([^>""]*)"">([^<]*) and this was the replace pattern

<a href="" /"">

This works fine if the link has no in front of it

So, I was wondering how I could incorporate a test for

1. not changing the link if the prefix is present
2. no slashes in front of the relative file link and if it is present
perform the update with a slash being added to

What I found doing the research was the ?! code but my GREP engine
converts it to ?+* and says it is not valid.



Site Timeline