Topic awaiting preservation: regular expression question (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: las vegas, nevada, us |
posted 03-15-2006 06:19
it's been so long since i've used any regex my brain just can't get this right, what would be the regex code to spot this in a url? code: et::f14990edc0::b6bc3a9c67::676b8ec6a3
code: ^(et::\w{10}::\w{10}::\w{10})$ ^(et::[a-z0-9]{10}::[a-z0-9]{10}::[a-z0-9]{10})$
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 03-15-2006 07:51
In an url? Like inside a string? |
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 03:45
sweet! the little things that nevr dawn on you! code: http://www.domain.com/index.php?action=register;code=et::f14990edc0::b6bc3a9c67::676b8ec6a3
code: http://www.domain.com/et::f14990edc0::b6bc3a9c67::676b8ec6a3
code: ScriptAliasMatch http://www.domain.com/(et::[a-z0-9]{10}::[a-z0-9]{10}::[a-z0-9]{10}*) http://www.domain.com/index.php?action=register;code=$1
|
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 03:48
hey I just got the 500 error to go away!!!!! |
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 04:46
sweet I got it all working!!! code: RewriteEngine on RewriteRule ^(et::[a-z0-9]{10}::[a-z0-9]{10}::[a-z0-9]{10})$ http://www.elbatigers.com/index.php?module=Invitations&hash=$1 [R=301,L]
|
Nervous Wreck (II) Inmate From: |
posted 03-16-2006 05:30
Can you use regex with mod_alias? Why not try using mod_rewrite http://httpd.apache.org/docs/2.0/misc/rewriteguide.html instead? code: RewriteRule ^(et::[a-z0-9]{10}::[a-z0-9]{10}::[a-z0-9]{10})$ index.php?module=Invitations&hash=$1 [R=301,L]
|
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 05:58
when I didn't put the full url it added part of the path so it look something like |
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 08:49
ok now it works without http://www.elbatigers.com. Thanks for all the help!!! |
Paranoid (IV) Inmate From: Lower City, Iest, Lower Felda |
posted 03-16-2006 10:23
quote:
|
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 14:40
You know it sucks the things you forget after 2 and a half years of not doing it! |
Paranoid (IV) Inmate From: las vegas, nevada, us |
posted 03-16-2006 14:53
EDIT: sorry double posted, the site was reallll slow so I clicked submit twice |