Erlang Mailing Lists

Author Message

<  User Contributions  ~  regexp.erl - drop-in replacement which can compile regexps

rvirding
Posted: Sun Oct 15, 2006 8:59 pm Reply with quote
User Joined: 30 Aug 2006 Posts: 452 Location: Stockholm, Sweden
This is a drop-in replacement for the standard regexp.erl which allows for compilation of regular expressions. They can either be used directly in the functions in the module, as with regexp:parse, or the DFA built from the regexps can be returned. Read the documentation.



regexp.txt
 Description:
Extra documentation

Download
 Filename:  regexp.txt
 Filesize:  3.62 KB
 Downloaded:  1213 Time(s)


regexp.erl
 Description:
The new regexp.erl

Download
 Filename:  regexp.erl
 Filesize:  27.39 KB
 Downloaded:  1263 Time(s)

View user's profile Send private message Visit poster's website MSN Messenger
rvirding
Posted: Sun Oct 22, 2006 8:48 pm Reply with quote
User Joined: 30 Aug 2006 Posts: 452 Location: Stockholm, Sweden
Here is an update to regexp.erl containing two small but important bug fixes.

Code:

482c482
< re_apply(eos, More, [$\n|S], P) -> re_apply_more(More, S, P);
---
> re_apply(eos, More, [$\n|_]=S, P) -> re_apply_more(More, S, P);
535c535
< comp_apply([], P, St, DFA, _Accept) ->
---
> comp_apply([], P, St, DFA, Accept) ->
538c538
<       #dfa_state{accept=false} -> nomatch
---
>       #dfa_state{accept=false} -> Accept

If anyone needs it I will repost the file.
View user's profile Send private message Visit poster's website MSN Messenger
datacompboy
Posted: Mon Oct 23, 2006 4:34 am Reply with quote
User Joined: 21 Sep 2006 Posts: 69 Location: Novosibirsk, Russia
rvirding wrote:
Here is an update to regexp.erl containing two small but important bug fixes.


yes, repost please! :)

_________________
--- suicide proc near\n call death\n suicide endp
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
rvirding
Posted: Mon Oct 23, 2006 4:14 pm Reply with quote
User Joined: 30 Aug 2006 Posts: 452 Location: Stockholm, Sweden
OK, here is regexp.erl again with the fixes. Hopefully there will be a new (compatible) release soon with some internal improvements.



regexp.erl
 Description:

Download
 Filename:  regexp.erl
 Filesize:  27.39 KB
 Downloaded:  847 Time(s)

View user's profile Send private message Visit poster's website MSN Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum