17 years, 7 months ago
Highlights
Learning regular expressions
Forum Reply
try this:>>> dir = "junkdata blahblahblbah /dir1/dir2/ junkdata blah blahb lah">>> x = re.search(".*(/.*/.*/).*",dir);>>> print x.group(0) /dir/rawr/…
17 years, 7 months ago
Latest Activity
Badges
Decade Member
5-Year Veteran
1-Year Veteran
Spotlight
View all badges →