DEV Community

Discussion on: Welcome Thread - v48

Collapse
 
hardik2310 profile image
gosai hardik • Edited

text = '/abc/def/da/de/abc_def_ge.txt'

def m = (text =~ /[\/]*$/)
println m[0]

the output is :: abc_def_ge.txt
can you explain us , how this works ??