Java Regular Expression
Java Regular Expression
2. Write a Java program that matches a string that has a p followed by zero or
more q's. Go to the editor
Click me to see the solution
4. Write a Java program to find the sequences of one upper case letter
followed by lower case letters. Go to the editor
Click me to see the solution
5. Write a Java program that matches a string that has a 'p' followed by
anything, ending in 'q'. Go to the editor
Click me to see the solution
6. Write a Java program to check a word contains the character 'g' in a given
string. Go to the editor
Click me to see the solution
7. Write a Java program that matches a word containing 'g', not at the start or
end of the word. Go to the editor
Click me to see the solution
8. Write a Java program to match a string that contains only upper and
lowercase letters, numbers, and underscores. Go to the editor
Click me to see the solution
Genel
Genel
12. Write a Java program to replace Python with Java and code with coding in
a given string. Go to the editor
Click me to see the solution
Genel