Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RegEx why does this simple expression not work?  RSS feed

 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone see the 'obvious' reason why my ReEx of

^/[a-z]+/[a-z]+/[a-z]+$
allows
/some/text/here

But the RegEx of
^/[a-z]+/[A-Za-z0-9]+/[a-z]+$
does not allow
/some/Text123/here

Surely (by my understanding) all I'm doing is extending the a-z to allow
uppercase & numeric characters.
 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK forget it, it was/is working, it's just Eclipse being 'reliable'. A clean of my project and suddenly it seems the RegEx is a match!!!

 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!