This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regular Expression !!!!!!

 
Kiran Reddy Challa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello..friends
when there is a pattern with regular expression: [a-c]x it means "ax" or "bx" or "cx". this works
But when i work with [c-a]x. i put the values "cx" or "ax" or "-x". it shows an ERROR. can anybody tell me what is the valid value for that [c-a]x expression
please reply soon...

thanks in advance
bye,kiran
 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The [c-a]x is NOT a valid pattern. To use regular expression, you have to make sure the put the range in the right order.
For example, in the [characterA-characterB], characterB must be greater or equal to characterA in order.
Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic