-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On January 28, 2004 15:30, Shawn Grover wrote:
> 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.

"t+" means one or more 't's ... you want "t +" perhaps (note the space). "{" 
is a special character in REs as well. and {\\*\\b doesn't match {\b0 ? you 
probably want:

\{\\b0 \{\\\*\\bkmkstart\s+bookmark_name\}

replace \s with whatever the RE engine you are using defines as the space 
metacharacter... sometimes \w ... usually \s .. you could just put " +" but 
then if it's a tab not a space or some other wierdness....

(i'm assuming that the "\b" sequences in the string are literals and not 
escaped nonprintables?)

- -- 
Aaron J. Seigo
while (!horse()); cart();
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFAGD5e1rcusafx20MRAj5bAJ4pdJyv3OoQM6FvbthOmSzWsDJIZgCeJQ04
5smsfZoiLBeRIJcYAI6yHvo=
=ZjkT
-----END PGP SIGNATURE-----

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

Reply via email to