can a regex pattern match return the starting position of the match?

2011-04-14 Thread Greg Aiken
given how smart perl is, I was thinking there must be a function within perl whereby if one does a pattern match against a scaler, that in addition to having regex being able to return such built in vars as: $` (what preceeds the match), $' (what follows the match), $1, etc. is there a built

Re: can a regex pattern match return the starting position of the match?

2011-04-14 Thread Conor
Greg- This question was answered on Stack Overflow: http://stackoverflow.com/questions/87380/how-can-i-find-the-location-of-a-regex-match-in-perl http://stackoverflow.com/questions/87380/how-can-i-find-the-location-of-a-regex-match-in-perlbrian d foy's answer seems to be the best: The built-in

Re: Parsing a PDF with empty fields

2011-04-14 Thread Ted Schuerzinger
(Apologies to the OP for first sending this to him and not the group.) On Wed, 13 Apr 2011 19:16:25 -0400, in perl you wrote: Disclaimer: I'm using Acrobat 10 and Office 2010, so YMMV. I opened the PDF in Acrobat and selected File, Save As, then chose Tables in Excel Spreadsheet (*.xml). I