On 11/4/2012 3:04 AM, Risto Vaarandi wrote:
> I have completed some work on the alpha version of the next release,
> and it supports returning hashes from PerlFunc patterns. If the user
> defines a custom parsing scheme inside PerlFunc pattern, keyword=value
> pairs can now be returned as named match variables with a single hash.
> However, there are still few things I'd like to clarify. Perl regexp
> named captures assume that a name consist of alphanumerals and
> underscores (i.e., each name character must match \w) which is also
> the case for LumberJack. Nevertheless, Perl also assumes that named
> capture never begins with a number. Does LumberJack impose a similar
> restriction? This restriction allows for one nice optimization --
> internally, named and numbered match variables can be stored in one
> hash table (for the latter, numbers are used as keywords).
> As a separator, I think it is quite easy to allow the use of ! inside
> variable names.
>

This sounds great!  One thing I am still a bit confused on is how SEC 
can handle variable length input?  I got the impression from your last 
example that this would handle it:

type=Single
ptype=PerlFuncN
...

I looked through the docs and I didn't see any indication that 'N' would 
match an arbitrary number of lines in that rule, and a review of the 
source indicates you absolutely must use an integer, not the symbol 
'N'.  Given this, how do you propose that SEC be able to parse the 
JSON/XML/whatever chunks that might be thrown at it? Those are generally 
formatted as variable lines with start/end markers, recursively embedded 
sections, etc.

Thanks,
Mark

-- 
Mark D. Nagel, CCIE #3177 <mna...@willingminds.com>
Principal Consultant, Willing Minds LLC (http://www.willingminds.com)
cell: 949-279-5817, desk: 714-495-4001, fax: 714-646-8277

** For faster support response time, please
** email supp...@willingminds.com or call 714-495-4000


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Simple-evcorr-users mailing list
Simple-evcorr-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to