Regular Expressions 101

Community Patterns

Find a quoted unix style path in text block

0

Regular Expression
Python

r"
(.*")(.*\/)(.*)(".*)
"

Description

Find a quoted unix style path in text block, breaking the text block into constituent parts, 1 before the quoted path starts 2 the path 3 the filename 4 whats left

Submitted by AndyGif - 8 years ago