find only 2 digits

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello from Steved

13 REIGNS AND POOR

How would I go about beginning at each paragraph that finds a two digit
as the above example then move one space to the right, if it finds a single
digit it needs to ignore.

Thankyou.
 
Thankyou.

I see what you mean Graham

I've single and double digits I'm trying to left Align all paragraphs.

as an example

1
12

would be

1
12
 
It is still not clear what you are trying to do. Do you want to vertically
align the second digit ie
1
12
2
13
etc?
or do you want to left align the first digit
1
12
2
13
?

Which series of numbers are you starting with?
If you are trying to make the latter like the former

then replace
(^13)([0-9][!0-9])
with
\1 \2

If the other way round then replace
[ ]([0-9])
with
\1

The width of a space will depend on the font. I found I needed two spaces
for the correct alignment, thus I have used two spaces in both examples. For
better control tabs would be more appropriate.

The first replace sequence will not act on the first line of the document as
it is looking for a number preceded by a paragraph mark. You can change that
one manually.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Hello Graham from Steved

firstly thankyou.

this is what i'm trying to acheive, left align the first digit.

Cheers.

ps my english cannot be to bad as you understood what I was trying to do.
(Only being Cheeky)


Graham Mayor said:
It is still not clear what you are trying to do. Do you want to vertically
align the second digit ie
1
12
2
13
etc?
or do you want to left align the first digit
1
12
2
13
?

Which series of numbers are you starting with?
If you are trying to make the latter like the former

then replace
(^13)([0-9][!0-9])
with
\1 \2

If the other way round then replace
[ ]([0-9])
with
\1

The width of a space will depend on the font. I found I needed two spaces
for the correct alignment, thus I have used two spaces in both examples. For
better control tabs would be more appropriate.

The first replace sequence will not act on the first line of the document as
it is looking for a number preceded by a paragraph mark. You can change that
one manually.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

Thankyou.

I see what you mean Graham

I've single and double digits I'm trying to left Align all paragraphs.

as an example

1
12

would be

1
12
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top