Re: [PATTERN MATCHING]
From: A. Sinan Unur (1usa_at_llenroc.ude.invalid)
Date: 12/17/04
- Next message: Martien Verbruggen: "Re: HTML Parser"
- Previous message: Gunnar Hjalmarsson: "Re: [PATTERN MATCHING]"
- In reply to: Gunnar Hjalmarsson: "Re: [PATTERN MATCHING]"
- Next in thread: jl_post_at_hotmail.com: "Re: [PATTERN MATCHING]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Dec 2004 21:51:02 GMT
Gunnar Hjalmarsson <noreply@gunnar.cc> wrote in
news:32h24kF3n7ercU1@individual.net:
> A. Sinan Unur wrote:
>> On second thought, another cheap shot:
...
> Yeah, *that* was cheap. :)
...
I know, I know.
> Well, I never said you don't need to be attentive to what you are doing
> when playing with substr() and index(). Just that it may be more
> efficient...
Mine was just an indirect way of trying to fix the OP's terminology and
also guide him toward a document which he should benefit from by reading in
its entirety.
I suspect that the OP's problem may involve inappropriate (or
inconsistent) use of double quotes as well as failing to quote the regex-
special characters, but this is just a suspicion since the OP did not show
real code and real data.
I did originally think about posting an index/substr based solution but too
many special cases kept pop up in my mind. Then I remembered Sedgewick's
treatment of search and replace in C, and I gave up.
Hope you had fun. I did :)
Sinan.
- Next message: Martien Verbruggen: "Re: HTML Parser"
- Previous message: Gunnar Hjalmarsson: "Re: [PATTERN MATCHING]"
- In reply to: Gunnar Hjalmarsson: "Re: [PATTERN MATCHING]"
- Next in thread: jl_post_at_hotmail.com: "Re: [PATTERN MATCHING]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]