slough Posted May 15, 2008 Share Posted May 15, 2008 As topic says... I need regex that matches the following urls /node/12345 /node/123 But NOT /node/12345/edit /node/123/edit How do I fix this...? Quote Link to comment Share on other sites More sharing options...
effigy Posted May 15, 2008 Share Posted May 15, 2008 #/node/\d+(?!/edit)# If the number comes last in the string, use \z in place of (?!/edit). Quote Link to comment Share on other sites More sharing options...
slough Posted May 19, 2008 Author Share Posted May 19, 2008 Thanks a lot! It worked with \z in the end. Solved! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.