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

Simon greminn at gmail.com
Fri Mar 28 09:41:31 NZST 2008


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



More information about the NZLUG mailing list