Jeff Abrahamson on 29 Jul 2007 22:00:12 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] regex


I want to extract the comments from a pdf.  I know how to do it (in an
ugly way) with perl, if I assume no comment contains a
close-parenthesis.  I know how to do it with lex if I don't make that
assumption, but I chose to make that assumption to avoid writing a
lexer. ;-)

I'm curious if anyone knows an easier way than the above.  The problem
is solved for this time, but I'd like to be more elegant about it next
time if I can.  These are the comments that show up as yellow
highlights that you have to click on in acrobat reader but that xpdf
doesn't seem to know how to display.

-- 
 Jeff

 Jeff Abrahamson  <http://jeff.purple.com/>
 phone: +33 06 21.83.26.20           (From U.S.: 011-33-6-2183-2620)
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug