Write a program that will match all the words with 1 or more occurrences of "pa" in a text.
Commonly used regex
Pa
Report a typo
Sample Input 1:
papa paparazzi pan powerSample Output 1:
papa
paparazzi
panWrite a program in Kotlin
fun main() {
val text = readln()
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.