|
|
| Author |
Message |
< User Contributions ~ regexp.erl - drop-in replacement which can compile regexps |
| rvirding |
Posted: Sun Oct 15, 2006 8:59 pm |
|
|
|
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. |
| Description: |
|
 Download |
| Filename: |
regexp.txt |
| Filesize: |
3.62 KB |
| Downloaded: |
1210 Time(s) |
| Description: |
|
 Download |
| Filename: |
regexp.erl |
| Filesize: |
27.39 KB |
| Downloaded: |
1262 Time(s) |
|
|
| Back to top |
|
| rvirding |
Posted: Sun Oct 22, 2006 8:48 pm |
|
|
|
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. |
|
|
|
| Back to top |
|
| datacompboy |
Posted: Mon Oct 23, 2006 4:34 am |
|
|
|
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 |
|
| Back to top |
|
| rvirding |
Posted: Mon Oct 23, 2006 4:14 pm |
|
|
|
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. |
| Description: |
|
 Download |
| Filename: |
regexp.erl |
| Filesize: |
27.39 KB |
| Downloaded: |
845 Time(s) |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|