15 Mar '06 20:45>
I get these messages, for example:
The 'The Mustangs' have bounced a challenge.
Can we please remove the first "The".
It bugs me.
The 'The Mustangs' have bounced a challenge.
Can we please remove the first "The".
It bugs me.
Originally posted by hopscotchI'm sure Russ would figure it out, but I feel like showing off here:
I get these messages, for example:
The 'The Mustangs' have bounced a challenge.
Can we please remove the first "The".
It bugs me.
Originally posted by stockenNo, that was too difficult.
I'm sure Russ would figure it out, but I feel like showing off here:
$str = preg_replace('|^The |', '', $str);
Ok, that was too easy... 😳
$str being the clan name of course, so:
The 'Mustangs' have bounced a challenge
Or should it be:
$str = preg_replace("|^The 'The |", "'The ", $str);
giving (if str is now the composed string):
'The Mustangs' have bounced a challenge
??
Originally posted by hopscotchOr add "clan" and replace "have" with "has":
No, that was too difficult.
The first "The" in the string is extraneous. All Russ has to do is simply remove it.
Eg, for your clan Bruno's Revenge, it will say,
"The 'Bruno's Revenge' have bounced a challenge".
Get rid of the the:
'Bruno's Revenge' have bounced a challenge.
Simple.
Originally posted by hopscotchOh. So, no need for nice (if kindergarden level) regular expressions? 😞 I'll just go to bed now... 😴
No, that was too difficult.
The first "The" in the string is extraneous. All Russ has to do is simply remove it.
Eg, for your clan Bruno's Revenge, it will say,
"The 'Bruno's Revenge' have bounced a challenge".
Get rid of the the:
'Bruno's Revenge' have bounced a challenge.
Originally posted by Natural ScienceWait! Wait! I got one!
Sounds good. The clan "Clan Caissa" has bounced a challenge.
Originally posted by NordlysYou know, that's actually a great idea. If the program could recognize opportunities to be ironic? How about this one:
Or: It was "A Big Mistake" to bounce this challenge.