On Sun, Jan 18, 2009 at 6:09 AM, Daniel Ehrenberg <micro...@gmail.com> wrote:
> Regexp group caputure hasn't been fully debugged yet. You should try
> using some other parsing mechanism, like pegs. Hopefully this will be
> fixed soon.

For peg.ebnf it would look something like:

"<em>123</em>" [EBNF rule="<em>" ([0-9])+ "</em> => [[ second ]] EBNF]

Or if you want to search for all occurences in a string:

USE: peg.search
USE: peg.ebnf

..string... <EBNF rule="<em>" ([0-9])+ "</em> => [[ second ]] EBNF> search

Chris.
-- 
http://www.bluishcoder.co.nz

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to