Skip to content

mate-academy/jv-read-from-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jv-read-from-file

You are given a file that contains different words as well as punctuation.

You need to filter out only the words starting with w, and remove any punctuation if necessary.

The result should be returned as a naturally sorted array. All words should be lowercase.

If the file does not contain the necessary words, return an empty array.

Examples:

"Width world Wide web"
Result: ["web", "wide", "width", "world"]

"WWW? Four-bedroom farmhouse in the countryside. Wave! All of the four double bedrooms are en suite."
Result: ["wave", "www"]

Hint: try to split Strings with a regular expression that includes whitespace and punctuation characters. Here is a good article.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages