next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
home
separateRegexp(String,ZZ,String) -- separate a string into pieces, with separators determined by a regular expression
Synopsis
Usage:
separateRegexp(sep,n,str)
Function:
separateRegexp
Inputs:
sep
,
a
string
, a regular expression
n
,
an
integer
str
,
a
string
, a string to be separated
Outputs:
a list of substrings consecutively extracted from
str
, with separators recognized by the
n
-th parenthesized subexpression of
sep
Description
i1 : separateRegexp("f(-)", 1, "asdf-qwer-dfadf") o1 = {asdf, qwer-dfadf} o1 : List