Welcome Guest, Not a member yet? Register   Sign In
regex help
#5

[eluser]dmiden[/eluser]
I meant view as in the method in your controller Smile
F.ex. if you would like to get the $1 from user/view/$1
you would normally use $this->uri->segment(3)
but since you've routed the url it's now, $this->uri->segment(2)
example:
http://localhost/user/chamyto
as chamyto is the 2nd param

If you instead want the routed URI segment you could use $this->uri->rsegment(n)
then $this->uri->rsegment(3) would be chamyto

Use http://www.regular-expressions.info/refadv.html for advanced reference in reg exp Wink


Messages In This Thread
regex help - by El Forum - 10-26-2008, 10:44 AM
regex help - by El Forum - 10-26-2008, 03:58 PM
regex help - by El Forum - 10-26-2008, 04:37 PM
regex help - by El Forum - 10-26-2008, 06:24 PM
regex help - by El Forum - 10-26-2008, 06:32 PM
regex help - by El Forum - 10-26-2008, 06:45 PM
regex help - by El Forum - 10-26-2008, 06:52 PM
regex help - by El Forum - 10-26-2008, 06:53 PM
regex help - by El Forum - 10-26-2008, 06:54 PM
regex help - by El Forum - 10-26-2008, 07:37 PM
regex help - by El Forum - 10-26-2008, 08:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB