Groovy get filename from url. Does anybody has some sample code for this? Groovy provides a rich set of tools for working with files and input/output operations. groovy 13 // in paried ends, fromFilePairs (with flat: true) returns a triplate 14 // where the first item is the filename without `R{1,4}. name) matches the given nameFilter in the given directory - calling the DefaultGroovyMethods#isCase (Object, Object) method to determine if a match Do you want to parse such URL or are you operating inside a web-server? Both PHP and Java example would indicate the later, but your question does not state any environment you run Can anyone help me how to download an image from url in grails. Step-by-step guidance and code examples included. github. groovy Get webpage content form URL Hey friends, support level up lunch by signing up with project fi and receive a $20 credit!! This groovy example will show how to get fetch the contents of a . ACTION_GET_CONTENT); intent. util package contains the FileNameFinder and FileNameByRegExFinder classes. Learn how to read and write a properties file in groovy example key and values as well as line by line and also write key and values. Here's the code from the Cookbook You probably don't want to use a regular expression for this if you don't have to.