[eluser]mast3rpyr0[/eluser]
Hey guys, I'm trying to create a $route that will take a string of any 5 character, letters or numbers (IE. n3AdB, case-sensitive), string and route it to a controller's function. These codes will then be looked up in a database. I have probably the most minute understanding of how a regex works so this is a bit difficult for me, but so far I've come up with:
Code:
$route['[A-Za-z0-9]\{5\}'] = "codes/getCode/$1";
This doesnt seem to work at all and just sends me to a 404.
Is there anyone here thats good at these, or maybe have another alternative? It also needs to ignore strings that are actually the names of controllers, however if needed i can just not make any controllers have 5 character names.
Thanks in advance