Welcome Guest, Not a member yet? Register   Sign In
Route to match all but a string
#8

[eluser]narkaT[/eluser]
[quote author="cdsuze" date="1222362547"]Is it that I cannot use $1 when there is a match?[/quote]

exactly Wink

$0 only works because the "matches"-array which is returned from preg_match
contains the complete matched string at its first index (0).

Greetings
Jan


Messages In This Thread
Route to match all but a string - by El Forum - 09-23-2008, 05:33 AM
Route to match all but a string - by El Forum - 09-23-2008, 06:23 AM
Route to match all but a string - by El Forum - 09-23-2008, 05:51 PM
Route to match all but a string - by El Forum - 09-23-2008, 07:44 PM
Route to match all but a string - by El Forum - 09-24-2008, 11:11 AM
Route to match all but a string - by El Forum - 09-24-2008, 11:24 AM
Route to match all but a string - by El Forum - 09-25-2008, 06:09 AM
Route to match all but a string - by El Forum - 09-29-2008, 02:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB