Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(^[-rwx]{10}\s*[\w\d]*\s*[^\s]*\s*[^\s]*\s*(?<size>\d*)\s*.{20}\s*(?<name>[^\n]*)$)*
/
mgi

Description

Capture details of file sizes and names from a ls listing from WinSCP

Submitted by anonymous - 3 years ago