Hello Christian,

In the find field, use this:

IT WAS A LOW-BUDGET AFFAIR and their WEBSITE ADDRESS was http://www\.(.+?)\.com

And in the replace field, use this:

it was a low-budget affair and their website address was http://www.\1.com

That will do exactly what you want for that string.

The periods in the URL need to be escaped, since you are
using grep. That is why I placed a backslash in front of each
of them.

Make sure that you click in the "case sensitive" and "grep" boxes.

WW

At 8:14 PM -0700 on 5/21/11, ChristianBoyce wrote:

  If I have a chunk of text like this:

  "IT WAS A LOW-BUDGET AFFAIR" it is easy for me to change the
  upper case to lower case, so it looks like "it was a low-budget
  affair".

  But, if I have something like this:

  "IT WAS A LOW-BUDGET AFFAIR and their WEBSITE ADDRESS was
  http://www.LOW-BUDGET.com"; I don't want to change the URL.
  Basically, I want to leave URLs untouched. It should look like
  this: "it was a low-budget affair and their website address was
  http://www.LOW-BUDGET.com";. (I want to do it all in one move--
  select the entire chunk of text, apply the GREP command.)

[snippity snip]

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to