JuliaStringUtilities¶
jutils.spad line 452 [edit on github]
This package provides Julia facilities that operate on strings.
- jlLatex: String -> String
jlLatex(str)
returns the String corresponding to a Julia LaTeX expression, that is, “L”str”” if your Julia support it (LaTeXStrings package). Convenience function.
- jlRegex: String -> String
jlRegex(str)
returns the String corresponding to a Julia regular expression, that is, “r”str””. Convenience function.
- jlRegexMatch?: (String, String) -> Boolean
jlRegexMatch(regex,
s
) checks if the regular expression matches ins
.
- jlRegexMatch: (String, String) -> AssociationList(String, String)
jlRegexMatch(regex, s)
returns the matched regular expressions ins
.
- jlRegexMatch: (String, String) -> List String
jlRegexMatch(regex, s)
returns the matched regular expressions ins
.
- jlRegexMatch: (String, String) -> String
jlRegexMatch(regex, s)
returns the matched regular expression ins
.
- jlRegexMatch: (String, String, PositiveInteger) -> AssociationList(String, String)
jlRegexMatch(regex, s, i)
returns the matched regular expressions ins
, starting at indexi
.
- jlRegexMatch: (String, String, PositiveInteger) -> List String
jlRegexMatch(regex, s, i)
returns the matched regular expressions ins
, starting at indexi
.
- jlRegexMatch: (String, String, PositiveInteger) -> String
jlRegexMatch(regex, s, i)
returns the matched regular expression ins
, starting at indexi
.
- jlRegexReplace: (String, String, String) -> String
jlRegexReplace(regex,subst,str)
will replace captured regular expressions instr
withsubst
. More information in String documentation of Julia. For example: jlRegexReplace(jlRegex(”$”), jlSubstitute(” you!”), “hey”)
- jlSplit: (String, String) -> List String
jlSplit(str, delims)
splitstr
with delimiter(s
) delims (a string or a regular expression). Equivalent to jlSplit(str
, delims, 0).
- jlSplit: (String, String, NonNegativeInteger) -> List String
jlSplit(str, delims, n)
splitstr
with delimiter(s
)delims
(a string or a regular expression). Return a list of sizen
. Parse entirelystr
ifn
= 0.