Forum Moderators: phranque
Is it okay to include all 50 of these state names within my RegEx pattern conditional? Or is that way too much info to put into a pattern and be too intensive?
Example:
^/?(alabama地laska地rizona地rkansas圭alifornia圭olorado圭onnecticut圬elaware圩lorida
夙eorgia多awaii夷daho夷llinois夷ndiana夷owa妄ansas妄entucky奸ouisiana妃aine妃aryland
妃assachussets妃ichigan妃innesota妃ississippi妃issouri妃ontana好ebraska好evade
好ew-hampshire好ew-mexico好ew-york好orth-carolina好orth-dakota她hio她klahoma她regon
如ennsylvania字hode-island存outh-carolina存outh-dakota宇ennesee宇exas守tah宅ermont
宅irginia安ashington安est-virigina安isconsin安yoming)/([a-zA-Z_]+)/([a-zA-Z_]+)$
[edited by: jdMorgan at 5:38 pm (utc) on Feb. 12, 2007]
[edit reason] Fixed side-scroll [/edit]
The only reason to shorten that pattern (by breaking it into multiple [OR]ed RewriteConds, for example) would be to make maintenance easier. But if this list is not likely to change often, then there's no reason to do that.
If you had 100 rules like this, then I'd start to worry a little about performance...
Jim