in reply to Re: Find and Replace text script?
in thread Find and Replace text script?

> Or the literal string, 'php' followed by a literal question mark?

yes the literal string - php?
I've already changed the file names to .html using Automator - it's the internal links that have php? in them that I'm trying to change.

Thanks,

-Bob

Replies are listed 'Best First'.
Re^3: Find and Replace text script?
by CountZero (Bishop) on Jul 14, 2006 at 05:50 UTC
    it's the internal links that have php? in them that I'm trying to change.
    That won't be so easy. It means that you first have to make sure that the php? you find is indeed an internal link and not part of something else (such as simple text: "Are you sure this is written in php?)").

    If you want the Monks to help you on this we will need more info. Can you show us some relevant parts of some of your files so one knows what we are dealing with?

    CountZero

    "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

      Hi CountZero,

      >That won't be so easy. It means that you first have to make
      >sure that the php? you find is indeed an internal link and
      >not part of something else (such as simple text: "Are you sure this is written in php?)").

      Fortunately, I don't have any other occurances of "php?" except in the five URLs on each page. If I did, then I'd probably expand the Find query to include the neighboring characters (for example ".php?page=") to isolate just the links.

      In any event, I was able to finally get it to work (see above). Hopefully all the new static pages will help cut down on the server load! :-)

      Thanks,

      -Bob