Re: Replacing 2 strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30/05/05, Brian V Bonini <b-bonini@xxxxxxx> wrote:

[...]

> > Again, an example that is as close to your real-world needs as possible
> > would be very helpful.
> 
> The original request was: "the text-to-replace is just in a var named
> $text1".
> 
> I read that to mean you'd already extracted "<^JIM_JONES>" into $text1

Sorry - my mistake/fault.  $text1 always begins with <^JIM_JONES> by
is followed by various other stuff:

<^JIM_JONES> Leicester, 1720.  Oxford, 1800 CONFIRMED: meeting at 19.10

And I'd like it to read, simply, JIM JONES: (I think having the name
in Caps would be best for now) and leave the rest of the text
unaltered:

JIM JONES: Leicester, 1720.  Oxford, 1800 CONFIRMED: meeting at 19.10

Things like "Leicester" need to be capitalised, and CONFIRMED needs to
be in caps, so...hope this explains things a bit better.  And if
you're both too busy, no problem!

Thanks,
-- 
Will   The Corridor of Uncertainty   http://www.cricket.mailliw.com/
 - Sanity is a madness put to good use -

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux