Re: HTML processing

"Trever L. Adams" <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
Ger Hobbelt wrote:
> There's no libcrm114 yet - I've something planned there, but don't
> wait up for me there - and one small extra bit: crm114 is not a
> daemon, nor does it understand sockets.
> crm114 can be executed using spawn(), system() or other 'external
> application invocation' calls available in your programming language.
> In that way, it's more like sed, grep or awk - to name a few tools
> which I use regularly on UNIX.
>
>   
I am using a UNIX-like system (Linux). I thought I had seen an example 
that talked TCP/IP in crm114. I guess I was wrong. I just went and 
looked back, it was pipes. I guess that is what I get for relying on my 
memory of crm from about a year ago.

Is it possible to have CRM do mailreaver.cm like functionality in a loop 
or will it only do one such thing per invocation? I ask this because I 
have an idea on how to make CRM act like a daemon if it does. (Loop over 
reading data from a program that does the TCP/IP for it... maybe the 
constant scheduling is more expensive than doing pipes directly with the 
program that would have been the TCP/IP sending.)
>> 2) Is it possible to process HTML such that I remove all HTML tags BUT
>> keep the content of the CONTENT part of META tags and ALT and TITLE
>> content from <IMG>? If so, how?
>>     
>
> First thing that comes up in my mind is using the regular expression
> parsing available in crm114. 'match', 'alter' and other commands in
> the crm114 language accept regexes, including support for
> subexpressions, which can be used to pick the data you want out of the
> input.
>
> Of course, other ways are feasible too.
>   
That is what I was hoping for, sub expressions.

Thank you,
Trever Adams

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Crm114-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crm114-general
signature.asc (application/pgp-signature, 259 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkg10toACgkQTmpiivh5HXOPSwCgktbnQO4HPeoofAxwS1fVv+zE
AGMAoKlt03Q4EIBsFoPLjhGfqF38xwQ0
=zPS+
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.