View previous topic :: View next topic |
Author |
Message |
eidolen
Joined: 15 Apr 2008 Posts: 11
|
Posted: Sun Mar 07, 2010 7:10 pm Post subject: Help With Capitalization Please |
|
|
Hello again,
Been a while since I've needed help but I'm stuck again.
I'm looking for a regex to capitalize single letters that are followed by a period. '.'
ie.
Company R.G.F.
becomes
Company R.g.f.
when using the sentence case option and I am trying to correct it.
It wouldn't be a problem with just a few files, but it has come up quite often.
Thanks,
Eidolen |
|
Back to top |
|
|
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Mon Mar 08, 2010 6:09 am Post subject: |
|
|
Hi,
Unfortunately there is no elegant way to do this.
The brute force way is to add a translation row for each letter.
e.g.
Row: 1
Search: '(?E)a\.'
Replace: 'A.'
Row: 2
Search: '(?E)b\.'
Replace: 'B.'
Row: 3
Search: '(?E)c\.'
Replace: 'C.'
You can continue this pattern for all 27 letters of the alphabet.
Peter. |
|
Back to top |
|
|
eidolen
Joined: 15 Apr 2008 Posts: 11
|
Posted: Mon Mar 08, 2010 2:24 pm Post subject: |
|
|
That's fine, just wanted to make sure I wasn't missing anything obvious.
Thanks for the quick reply and helpful answer.
E |
|
Back to top |
|
|
eidolen
Joined: 15 Apr 2008 Posts: 11
|
Posted: Tue Mar 09, 2010 6:12 pm Post subject: |
|
|
I almost forgot,
I am also having trouble with the Post Processing feature. It seems that no matter what I try, I can NOT get rid of the separator on a single pass, but I can user the exact same regex after the first rename and it works fine.
Is there a bug I'm unaware of, or am I just doing something wrong?
Thanks |
|
Back to top |
|
|
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Wed Mar 10, 2010 7:46 am Post subject: |
|
|
Sorry but I need more details on exactly what the problem is.
Please post some example before/required-new names, before/resulting-new names, and the summary information displayed by PFrank after the scan.
Thanks,
Peter. |
|
Back to top |
|
|
|