On Tue, Mar 4, 2008 at 2:13 PM, Jerry Walz <[EMAIL PROTECTED]> wrote:
> Grep newbie help
>
> I have a group of links that include a format like
>
> Opinions/Horn/05/HORN.SouthernComfort.pdf
>
> I need to change them to a format like this
>
> sites/default/files/HORN.SouthernComfort.pdf
>
> Any help will be appreciated.
Is it just me or has this list become the regular expressions help list?
What you want is a regex with "anything" then "a slash" followed by
"everything that's not a slash", replacing the first two with
"sites/default/files/".
That should be enough to get you to write your grep.
--
Jared Earle :: There is no SPORK
[EMAIL PROTECTED] :: http://www.23x.net
The Spodcast :: http://spodcast.org
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>