Question: Scenario Four You are tasked with developing a text - checking application using regular expressions. The application will allow users to load a text file
Scenario Four
You are tasked with developing a textchecking application using regular expressions. The application will allow users to load a text file through a standard file open dialog box and automatically scan for specific problematic words. These problematic words include:
Words containing a number anywhere in the word.
Words containing a capital letter in any position other than the start of the word.
Words containing special characters such as # @ etc. within the word, except if the character is at the start or end of the word. A hyphen is considered acceptable.
Once the text file is loaded, the application should display an indication that the file has been successfully loaded. The problematic words should then be flagged, showing both the line number and the word number in the line where each issue occurs.
Note: The scenario is only applicable to questions
What is the best way to handle different types of problematic words with multiple regular expressions? Show all the regular expressions numbers capital letters, special characters
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
