View Issue Details

IDProjectCategoryView StatusLast Update
0000171LDMudEfunspublic2004-11-26 22:11
ReporterlarsAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0000171: regexplode() modification
DescriptionShort: 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" })
TagsNo tags attached.
External Data (URL)

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2004-11-26 22:11 lars New Issue