groovy regexpression
Posted
by srinath
on Stack Overflow
See other posts from Stack Overflow
or by srinath
Published on 2010-05-25T12:51:07Z
Indexed on
2010/05/25
13:11 UTC
Read the original article
Hit count: 295
Hi,
How to get file name from these lines using groovy .
File file = new File(SOURCE_FILE_NAME).eachLine{line->
println line
}
getting line like this :
/usr/local/testing.groovy
/usr/local/picture.jpg
expecting output:
testing.groovy
picture.jpg
Can any one help me using any if regex needed .
thanks
© Stack Overflow or respective owner