Copyright © 2007 YAMASHINA Hio
Version: 0.08
Authors: YAMASHINA Hio (hio@hio.jp).
Options argument of match/3 and compile/2.
ignorecase (i)multiline (m)singleline (s)extended (x)utf8rx() = {prx, X}
compiled regexp object.
| compile/1 | compile pattern. |
| compile/2 | |
| gsub/3 | replace substring which matches Regexp with Replacement. |
| match/2 | search a string for pattern. |
| match/3 | search a string for pattern. |
| start/0 | start port driver. |
| stop/0 | stop perlre port service. |
compile(Regexp) -> Rx
compile pattern.
{ok,Rx}=perlre:compile("(\\w+)").
{ok,["abc"]}=perlre:match("abc",Rx).
nomatch=perlre:match("---",Rx).
{error,ErrMsg}=perlre:compile("(").
compile() -> term()
gsub(String, Regexp, Replacement) -> string()
replace substring which matches Regexp with Replacement.
{ok,"ab.ab"}=perlre:gsub("12.34","\\d+","ab")
{nomatch,"12.34"}=perlre:gsub("12.34","\\s+","XX")
{error,ErrMsg}=perlre:gsub("abc","(","").
match(String, Regexp) -> Result
Equivalent to match(String, Regexp, []).
search a string for pattern.
{match, ["123", "abc"]} = perlre:match("123abc", "(\\d+)(\\w+)").
nomatch = perlre:match("123abc", "(\s+)").
{error, ErrMsg} = perlre:match("123abc", "(\s+)").
match(String, Regexp, Options) -> Result
search a string for pattern. See Regexp Options for available options.
start() -> term()
start port driver
stop() -> ok
stop perlre port service.
Generated by EDoc, Jun 11 2007, 17:07:52.