Tuesday, 17 September 2013

Regex(taking a specific part of one line)

Regex(taking a specific part of one line)

I wanna take a specific part of one line, like this one below:
disk = ['C:/ParticionOne/lalala/bebebeb/disk.img], w']
I wanna take text between the quotes and before the first brackets, like
that:
C:/ParticionOne/lalala/bebebeb/disk.img
How can i do that? Give me clues of how do that, thanks :D

No comments:

Post a Comment