FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » String Question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: String Question [message #172814 is a reply to message #172813] Thu, 03 March 2011 19:17 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Denis McMahon wrote:
> On 03/03/11 07:32, Curtis Dyer wrote:
>> Denis McMahon <denis(dot)m(dot)f(dot)mcmahon(at)googlemail(dot)com> wrote:
>>
>>> On 02/03/11 21:14, Patrick wrote:
>>>> On 3/2/2011 3:59 PM, Denis McMahon wrote:
>>>> > On 02/03/11 20:38, Patrick wrote:
>> <snip>
>>
>>>> Thanks. I came to that same conclusion and found that there are
>>>> 2 spaces between "ERROR:" and "duplicate" in the second string
>>>> and only one in the first. No way you could ever tell that from
>>>> the output on the screen.
>>> Ah, you were viewing the error message in a browser and then
>>> pasting it into text? Browsers do things like 's/\s*/ /'
>> Did you mean:
>>
>> s/\s+/ /
>>
>> Your regex would replace "foo" with " f o o ".
>
> Probably. I should wake up before posting regexes heh.
>

Another reason why I would prefer to learn Linear B, than Regexps. It
tends to be slightly easier.

> Rgds
>
> Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: genuine adsence accounts Big offer
Next Topic: fgetcsv -- No error reporting?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 19:26:47 GMT 2024

Total time taken to generate the page: 0.03918 seconds