A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » Formatting Long Documents
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Brackets around footnote-number with RegEx, small problem

Thread Tools Display Modes
Old September 25th 15, 09:35 PM posted to microsoft.public.word.formatting.longdocs
[email protected]
external usenet poster
Posts: 1
Default Brackets around footnote-number with RegEx, small problem

Hi everybody

I've tested around with RegEx in find and replace dialog.
I'd like to replace the footnote numbers in the text AND in the footnote storyrange.

The problem of the standard replace function is that every time I replace, Word adds new brackets but I only need one pair of brackts.
I mean: number 1 should convert to (1) but not to ((1)).

Well, with RegEx it works fine:
Find: ([!( ])(^2)
Replace: \1(\2)

Problem: this works perfectly but only for the main text. It doesn't change the footnote numbers in the footnote storyboard.

My problem with this RegEx is that Word marks the character left of the number. That's the reason why I replace with \1
If there's a chance of exclude the left bracket WITHOUT mark it, then I could solve the problem I think.

Mhm, I hope anybody understands my problem. Sorry it's quite strange;-)

Thanks a lot!

Old September 26th 15, 05:22 PM posted to microsoft.public.word.formatting.longdocs
Daniel Hofer[_2_]
external usenet poster
Posts: 1
Default Brackets around footnote-number with RegEx, small problem


I've just solved the problem by myself.
My problem was that I was looking for the left bracket.
If I search the right bracket, then it's working wonderfully;-)

Search for: (^2)([!)])
Replace with: (\1)\2

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF Page Number Brackets ChrisP Microsoft Word Help 0 November 25th 09 12:01 AM
How to bookmark a footnote to reference the footnote number qumranandy Microsoft Word Help 1 July 20th 08 09:34 PM
Removing brackets in HTML footnote reference cfulmer Microsoft Word Help 0 January 20th 06 12:07 AM
How do I make an automatic number small caps under Number Format? grebop Microsoft Word Help 3 October 17th 05 05:31 AM
Big problem footnote number sequence in a Word 2003 document Melsco Microsoft Word Help 2 March 29th 05 03:47 PM

All times are GMT +1. The time now is 12:34 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.