Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Long time no posting! I've a regex question!


g1smd - 3:24 pm on Mar 2, 2013 (gmt 0)


/([0-9]{2}|[0-9]{3})$
would work, but the general rule is "when something repeats, stuff can be combined", hence
/[0-9]{2,3}$ instead.


Thread source:: http://www.webmasterworld.com/php/4550389.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com