• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regular Expressions- Regex

 
Daniel Simpson
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, is anyone using regular expressions from the java.util.regex package in their assignments? And are we required to use them for our searching techniques? Thanks!
 
Wim van Haaren
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Daniel,

We are not required to use regular expressions. I myself haven't used them for searching techniques. I did use them, however, to make sure a user could only enter digits in a JTextfield by providing it with a custom javax.swing.text.Document in which I used RE.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!