Write a findMe function that takes a string as input and returns a concatenated string of all the words that start with the $ symbol in the source. Each word may contain any symbol except for space. The resulting words must not include the $ symbol, only word contents.
Scala Regex
Find me
Report a typo
Sample Input 1:
we study $in $University in ParisSample Output 1:
in UniversityWrite a program in Scala 3
def findMe(s: String): String =
??? // 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.