Thanks for the input Curtis.  Unfortunately vi is not an option in this
case.  It's needs to be a completely automated process through a web page
rendered by Cold Fusion.  We have it working now, and have discovered in the
process that the MS Word Template files in question (having been exported to
RTF) are simply bad.  Some have a massive amount of excess coding in them,
and others have large images imbeded in them.  But, the process works, and
this is something I can get the client to modify over time. It's ugly, but
we have to give the user a list of all templates in a certain folder, let
them select a template, then merge that template with data from our
database, feed the resulting document back to them through their browser,
let them edit it and save it, then import the resulting file into our
virtual file system without any further user input.  I was able to get
everything working, except the data merge routine was taking forever on some
of the templates. (btw, NEVER do Office automation on a server - it will
crash the sever, or result in very weird behavior) It actually is a pretty
slick process, but damn there are some complex cient-side/server-side
interactions going on during this process.  Only took me about 15 hours to
make the core of this work (<grins> patting myself on the back - please
don't tell me NOW that it could be done in an hour).

oops.  I'm rambling.  Anyways, thanks to all who helped.

Shawn

-----Original Message-----
From: Curtis Sloan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 8:08 PM
To: CLUG General
Subject: Re: [clug-talk] OT: Regular Expression Help?


Well, I'm not a programmer and this is taking OT to new levels, but...

When I had to do a tag substitution for a massive (read: ~20MB) HTML
file (don't ask...) I couldn't find any program (under Windows, at
least) that wouldn't hang.  So I figured that, naturally, Linux would
have something that didn't hang.  I tried a couple of GUI apps and even
Tidy (http://tidy.sourceforge.net/) but nothing worked (within 12 hours,
at least :-P), until I found a vi tutorial that taught me how to do
substitutions (heh, I am _still_ such a vi n00b).

Needless to say, vi thoroughly impressed me with its abilities to handle
some massive substitutions (~16,000+) with excellent return times.

Now what were we talking about...?  ;-P

Curtis

On Wed, 2004-01-28 at 15:30, Shawn Grover wrote:
> I know we have some decent programmers on the list, perhaps someone might
> help me out some?
> 
> I have routine that reads in an RTF file, and then needs to find bookmarks
> and insert a value for the bookmark.  I'm doing this in Cold Fusion, but
the
> problem is pretty generic.  I'm usings CF's "replace" function, and it
> works, but takes way too long in some cases.  So I thought that if I use
> regular expressions, I might speed things up.
> 
> This is the string I'm searching for:  "{\b0 {\*\bkmkstart bookmark_name}"
> 
> The regex I have come up with for this thus far is :
> "\{\\\\*\\\\bkmkstart+bookmark_name\}"
> but this isn't matching.
> 
> Any tips on what the regex should be for that string?  Am I even close?
> 
> Thanks in advance.
> 
> Shawn
> 
> (ps.  I'm a regex newbie - can you tell?)
> 
> 
> _______________________________________________
> clug-talk mailing list
> [EMAIL PROTECTED]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca


_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to