A
a
Hi,
str = c:/dir0/dir1/file.txt
str =~ /c:\/(.*)/
The $1 will equal to dir0/dir1/file.txt
I only want to have dir0 in $1
How should I put my regex?
Thanks
str = c:/dir0/dir1/file.txt
str =~ /c:\/(.*)/
The $1 will equal to dir0/dir1/file.txt
I only want to have dir0 in $1
How should I put my regex?
Thanks