<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<title>Flashmail</title>
<style type="text/css">
BODY, TABLE, TR, TD, P {margin:0;padding:0;}
BODY {background:#FFFFFF;}
</style>
</head>
<body>







Hi !<br><br>The README isn't clear enough.<br>Follow this one:<br><br>1. Compile your regexp.<br><br>$ make<br>$ erl +Ktrue -pa ebin/<br><br>1> erl_ddll:load_driver("./priv", 'RE_drv').<br>2> erl_ddll:loaded_drivers().<br><br>4>  {ok, RE} = posregex:compile(<<"abc.*foo">>, [extended]).<br>{ok,#Port<0.101>}<br><br><br>Try to match something <br><br>7> posregex:match(RE, <<"abc mre text here foo">>, []).<br>ok<br><br><br>If it doesn't match <br><br>9>
posregex:match(RE, <<"abdc mre text here foo">>, []).<br>{error,nomatch}<br><br><br>Try to match and find out where the match occured<br><br>10> posregex:exec(RE, <<"abc mre text here foo">>, []).  <br>{ok,[{0,21}]}<br><br><br>Free memory occupied by the compilation (or exit process since<br>RE is an erlang port)<br><br>11> posregex:free(RE).<br>ok <br><br><br>cheers<br>Y.<br>----Message d'origine----
<br>>Date: Fri, 5 Oct 2007 01:10:34 -0700
<br>>De: YC 
<br>>A: erlang-questions@erlang.org
<br>>Sujet: [erlang-questions] posregex error: RE_drv not found
<br>>  <mailto:erlang-questions-request@erlang.org?subject=unsubscribe>
<br>>  <mailto:erlang-questions-request@erlang.org?subject=subscribe>
<br>>
<br>>Hi -
<br>>
<br>>I downloaded posregex and compile on my machine per the suggestion of the
<br>>thread
<br>>http://www.erlang.org/pipermail/erlang-questions/2007-September/029492.html.
<br>>I'm able to make and sudo make install, but when I try to run it in erlang I
<br>>encounter the following message:
<br>>
<br>>2> {ok, RE} = posregex:compile(<<"abc.*def">>,[extended]).
<br>>sh: line 0: exec: RE_drv: not found
<br>>
<br>>BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
<br>>       (v)ersion (k)ill (D)b-tables (d)istribution
<br>>
<br>>And not sure how to proceed from here.  I tried both 1.0 & 1.0.1 with the
<br>>same results.
<br>>
<br>>Any insights are appreciated, thanks.
<br>>
<br>>yc
<br>>
<br>>_______________________________________________
<br>>erlang-questions mailing list
<br>>erlang-questions@erlang.org
<br>>http://www.erlang.org/mailman/listinfo/erlang-questions
<br>>


</mailto:erlang-questions-request@erlang.org?subject=subscribe></mailto:erlang-questions-request@erlang.org?subject=unsubscribe></body></html>