Actually, you're getting pretty close.

Assuming the "b0" bit is static....

"\{\\b0 \{\\\*\\bkmkstart bookmark_name\}"

Untested, YMMV.

However, this doesn't use any of the magic of regex.  In other words,
replace() will be faster on this than rereplace().  If "bookmark_name"
or "b0" was variable, then you might be able to do something different.
  But a single regex call is always slower than the equivalent standard
string call.

So, I guess the question is, "Why do you want to use regex?".

--Ben Doom

Shawn Grover wrote:

> I have routine that reads in an RTF file, and then needs to find bookmarks
> and insert a value for the bookmark.  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 (with the REReplace function), 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?)
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to