Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^(.*?)/(.*?),now\s(.*?)\s(.*?)\s
"
g

Description

extract the package name and version name from the apt list --installed command

Submitted by anonymous - 8 years ago