String to search.
Regular expression pattern.
Regular expression attributes.
corresponding RegExp if found, null if not.
import std.stdio; import undead.regexp; void main() { if (auto m = undead.regexp.search("abcdef", "c")) { writefln("%s[%s]%s", m.pre, m[0], m.post); } } // Prints: // ab[c]def
Search s[] for first match with pattern[] with attributes[].