regrab - luxembourg/muxcode-clm GitHub Wiki

REGRAB()

FUNCTION: regrab(<list>, <regexp>[, <separator>]) regrabi(<list>, <regexp>[, <separator>]) regraball(<list>, <regexp>[, <separator>]) regraballi(<list>, <regexp>[, <separator>])

These functions act like grab() and graball(), respectively, except instead of matching with a wildcard pattern, they use a regular expression. regrab() returns the first element of the list that matches the regexp, and regraball() returns all the elements that match. They are case-sensitive. The versions ending in 'i' are case-insensitive.

Related Topics: grab, graball, regrabi, regraball, regraballi(), regexp syntax.