Mwnci regexp() Function

Syntax

regexp(regexp, file)

Description

The regexp() function returns an array of lines from the file that match the regular expression regexp.

Example

println(regexp("^foobar", "/etc/passwd"))


[foobar:x:1000:100:Foo Bar,,,:/home/foo:/bin/bash, foobar1:x:1001:100:Foo Bart:/home/foobar1:/bin/sh]