Regular Expressions: Character Ranges

Problem:

Using character ranges of regular expressions, create a regular expression that matches: Ana Bob Cpc but does not match aax bby ccz.

Output:







Solution:


[A-C][n-p][a-c] This would be the solution. It's an easy problem!


2 comments :

  1. 5D liposuction Korea Korea's #1 Liposculpture Clinic. Lydian plastic surgery is the home of VIP patients. Celebrities, Influencers and Diplomats all know and trust Doctor An and Lydian plastic surgery clinic to provide detailed results.

    ReplyDelete
  2. Super City Mod for Android is a new city-building game that allows you to customize and build your own city from the ground up. You can choose where to place your buildings, what types of businesses to open, and how many people to bring in. You can also choose which characters to include in your city, and how they will interact with each other.

    ReplyDelete

Follow Me

If you like our content, feel free to follow me to stay updated.

Subscribe

Enter your email address:

We hate spam as much as you do.

Upload Material

Got an exam, project, tutorial video, exercise, solutions, unsolved problem, question, solution manual? We are open to any coding material. Why not upload?

Upload

Copyright © 2012 - 2014 Java Problems  --  About  --  Attribution  --  Privacy Policy  --  Terms of Use  --  Contact