Question: Decimal digit: 0-9 Decimal literal: 0 or a non-zero decimal digit followed by 0 or more decimal digits Octal digit: 0-7 Octal literal: 0 followed
Decimal digit: 0-9 Decimal literal: 0 or a non-zero decimal digit followed by 0 or more decimal digits Octal digit: 0-7 Octal literal: 0 followed by 1 or more octal digits Hex digit: 0-9, a-f, A-F Hex Literal: ' Ox ' or ' OX ' followed by 1 or more hex digits Binary digit: 0 or 1 Binary Literal: 'Ob' or 'OB' followed by 1 or more binary digits Write RegEx patterns for decimal literals, octal literals, and hex literals
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
