Grep()

From TinyMUX
Revision as of 07:53, 28 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions {{Function|grep(<object>,<attrs>,<pattern>)}} This function returns a list of attributes on <object> containing <pattern>. <attrs> is a wildcard pattern for attri...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


grep(<object>,<attrs>,<pattern>)

This function returns a list of attributes on <object> containing <pattern>. <attrs> is a wildcard pattern for attribute names to search; if you want to search all attributes, use "*".

Parsing _does_ occur before this function is invoked. Therefore, "special" characters will need to be escaped out. <pattern> is NOT wildcard matched.

This function is case-sensitive. grepi() is a case-insensitive version.