[nzlug] A little help with some find and replace?

Shannon Skinner shannonsnz at gmail.com
Fri Mar 28 09:52:53 NZST 2008


Not trying to be dismissive here, but have you tried a google for regex
builders? There are a number of websites and freeware builders that are
great if you're a bit unsure about regexes. They even provide visual
feedback on what part of your expressions match what text.


On Fri, Mar 28, 2008 at 9:41 AM, Simon <greminn at gmail.com> wrote:

> Hi There,
>
> Just wondering if someone that is much better than me at regular
> expressions could give me a bit of a hand here?
>
> We have some websites (moving from Windows to Linux hosting platform)
> that have CAPITOL letters in the code (god forbid!) that need to be
> replaced. A possible line that needs to be changed is...
>
> [ListFiles ../Website/Orders/[current]/][hideif [filename]^icon]
>
> which needs to be changed to:
>
> [ListFiles ../website/orders/[current]/][hideif [filename]^icon]
>
> There is always a '[' then some text, which is directly after the "[".
> Esentially [CommandThatStaysAsItIs AllThisNeedsToBeChanged].
>
> Any ideas?
>
> Thanks!
>
> Simon
>
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>


More information about the NZLUG mailing list