Regular Expressions: Interrogation Mark

Problem:

Match the following expressions "1 file found?", "2 files found?" and "x files found?" using the interrogation mark.

Output:







Solution:


You could be doing this: 1?2?x? files? found\?

Or

This: \w files? found\?

\w indicates that it could be any character, I assume.


Alternatively, you can use: . files? found\?


3 comments :

  1. painting company round rock With 30 years of experience, Kolor Pros Painting gives you the best results available. Our House Painters can handle any job, and can even repair drywall, or replace rotted wood trim. Call us today, and see what we can do for you!

    ReplyDelete
  2. after 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
  3. Scarfall Modded Apk is a new, free mobile game that will have you battle against other players in real time. The game is based on the popular card game, Hearthstone, and features a variety of different cards to use in your deck. The goal of the game is to defeat your opponent by playing cards that damage or destroy their units.

    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