Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lex in the C programming language.
Problem: We have to validate password.
A password is correct if it contains:
- Atleast 1 uppercase character
- Atleast 1 lowercase character
- Atleast 1 digit
- Atleast 1 special character
- Minimum 8 characters
Input: Geeksforgeeks Output: INVALID Input: Geeks@12 Output: VALID
Note: The words can consist of lowercase characters, uppercase characters and digits.
Below is the implementation to count the number of words.
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- 8085 code to convert binary number to ASCII code
- 8085 program to convert ASCII code into HEX code
- Convert C/C++ code to assembly language
- Register Allocations in Code Generation
- 8086 program to convert 8 bit BCD number into ASCII Code
- Computer Organization | Locality and Cache friendly code
- 8086 program to convert binary to Grey code
- 8085 program to convert 8 bit BCD number into ASCII Code
- 8085 program to convert a hexadecimal number into ASCII code
- SSD Full Form
- Function Keys on keyboard
- Comparison of 8051 with its other family members
- Bus Cycles of 8086 Microprocessor
- Difference between Near Field Communication (NFC) and Radio Frequency Identification (RFID)
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.