[nycphp-talk] regexp: feeling better
Marc Antony Vose
suzerain at suzerain.com
Wed Mar 17 17:00:11 EST 2004
OK, I have figured out that my problem is a difference in
configuration with regard to adding slashes. Silly.
Long day,
Marc
At 3:49 PM -0500 3/17/04, Marc Antony Vose wrote:
>Now I have to steer this in a different direction.
>
>The change in pattern works fine on my PowerBook (I have virtual
>domains set up on my account, so it behaves through the browser just
>as it would live).
>
>However, it doesn't work on the remote machine...the change doesn't
>happen. The remote server is a Linux shared server environment
>which I am familiar with, and normally I don't have these kinds of
>gotchas (I have like 9 domains hosted there).
>
>Does anyone have any insight as to what could be the difference
>between my local setup and the remote one, with respect to the
>preg_replace_callback() function?
>
>Both machines are above 4.3, so the function certainly ought to be
>available, and would be throwing an error if it weren't.
>
>?? confused.
>
>Marc
>
>
>
>
>
>At 3:16 PM -0500 3/17/04, David Sklar wrote:
>>>many thanks. i was trying in my head to create a match for the
>>>beginning of the tag, then anything that is not "</sup>", and then
>>></sup>.
>>>
>>>many times, like now, i find that my strategy is wrong with
>>>pattern matching.
>>
>>Thinking like a regex would is a weird way to think that requires a
>>lot of adjustment from normal human thought.
>>
>>The adjustment, IMHO, is complicated when you want to express a
>>negation in your pattern (like "anything that is not '</sup>')
>>because the ways to do that in regex land are tucked into twisty,
>>punctuation-riddled back alleys.
>>
>>"Mastering Regular Expressions" by Jeffrey Friedl
>>(http://regex.info) is the place to start if you want to climb the
>>regex mountain, though.
>>
>>David
>>
>>
>>_______________________________________________
>>talk mailing list
>>talk at lists.nyphp.org
>>http://lists.nyphp.org/mailman/listinfo/talk
>
>_______________________________________________
>talk mailing list
>talk at lists.nyphp.org
>http://lists.nyphp.org/mailman/listinfo/talk
More information about the talk
mailing list