Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regular expression  RSS feed

Abhishek Dhama
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to extract strings consisting of alphanumeric characters from an expression of format <digit>.<digit>(<string>,<string>,<string> ) . Regular expression I am using is \\w+. But the problem is that although I get three strings but I am also getting second digit also which is not required.I guess I am somewhere wrong with forming the regular expression. It would be great if someone could point out the mistake.
Thanks in advance

[ August 04, 2004: Message edited by: Abhishek Dhama ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!