View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000171 | LDMud | Efuns | public | 2004-11-26 21:11 | 2004-11-26 21:11 |
Reporter | Assigned To | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0000171: regexplode() modification | ||||
Description | Short: modified regexplode() From: Dave Setty <garpoz@locallink.net> Date: Thu, 10 Dec 1998 02:03:04 -0500 Type: Feature State: Unclassified 2) A patch for regexplode which gives it an option not to include the matched parts of the input string in the return array. Useful for parsing some types of input. (regexplode(str, " *, *", 1)) Matthew Julius explains: varargs string *regexplode(string, string, int) Allow an optional third argument to filter out matching or non matching pieces of the expression. For examples, regexplode("abc", "a.") returns ({ "", "ab", "c" }) regexplode("abc", "a.", 1) returns ({ "", "c" }) regexplode("abc", "a.", 2) returns ({ "ab" }) | ||||
Tags | No tags attached. | ||||
External Data (URL) | |||||