Start Info Community Spielen
 
 

Morgengrauner Dokumentation

Dateipfad: /home/mud/mudlib/doc/efun/regexplode

SYNOPSIS
        #include 

        string * regexplode(string text, string pattern)
        string * regexplode(string text, string pattern, int opt)

DESCRIPTION
        This function is similar to explode but accepts a regular
        expression  as delimiter (interpreted according to 
        if given).

        If flag RE_OMIT_DELIM is not set in , then every second element
        in the result vector will be the text that matched the delimiter.
        If the flag is set, then the result vector will contain only
        the text between the delimiters.

EXAMPLES
        regexplode("abcdef", "cde")                -> ({ "ab", "cde", "f" })
        regexplode("abcdef", "cde", RE_OMIT_DELIM) -> ({ "ab", "f" })

HISTORY
        Introduced in 3.2@61.
        LDMud 3.3 added the optional  argument and the RE_OMIT_DELIM
          flag.
        Since 3.5.0 a error is raised if RE_PCRE is specified in , but
        the driver lacks PCRE support.

SEE ALSO
        explode(E), regexp(E), regmatch(E), regreplace(E),
        regexp_package(E), regexp(C)


zurück zur Übersicht

YOUTUBE | FACEBOOK | TWITTER | DISCORD | FEEDBACK | IMPRESSUM | DATENSCHUTZ 1992–2025 © MorgenGrauen.