View previous topic :: View next topic |
Author |
Message |
Firelord
Joined: 01 Apr 2009 Posts: 2
|
Posted: Wed Apr 01, 2009 7:22 pm Post subject: A dumb question... |
|
|
Hello Peter,
thank you for your super and flexible program and time you spend to improve it and to answer our questions here.
I have a little dumb question:
I need a way to match one or many words and uppercase/lowercase/capitalize 'em.
e.g.
I use this string to match any of those words in prefix at any position:
(?xi)(test|ntsc|pal|usa||partial|complete|demo)
now I wish to uppercase or lowercase or capitalize them and only them.
Is it possible?
Thanks in advance. |
|
Back to top |
|
|
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Thu Apr 02, 2009 2:22 am Post subject: |
|
|
There's no such thing as a dumb question.
To do what you want, check out the Options Window -> Change Case and Force Case menus.
The Force case menus lets you make a list of words that you want to have with specific letter cases.
The Change Case menu lets you choose which of the Case-related predefined commands will use the force case tables.
eg. If you change the case of a phrase to title case using the pre-defined renaming commands without any force case options, you could change:
i likE pLaying MUSIC by acDC
to
I like playing music by acdc
But if ACDC is in a force case table and Title case is configured to use the table, then the phrase would become:
I like playing music by ACDC
Hope that helps.
Peter. |
|
Back to top |
|
|
Firelord
Joined: 01 Apr 2009 Posts: 2
|
Posted: Thu Apr 02, 2009 11:28 am Post subject: |
|
|
Hello Peter and thanks for your answer.
Yes, this works, but I wonder if ther's something that could be done with a little bit of flexibility and only when I really need it.
I mean: everytime I have to go inside prefs and adding/deleting things I want to force case, it is ok afterall, but is there any way to use something like a regex and so I can enable/disable it anytime and directly from the list?
If not, I belive it could be a nice thing to implement in the future, or not?
Thank you again for your support and time.
Cheers |
|
Back to top |
|
|
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Fri Apr 03, 2009 3:42 pm Post subject: |
|
|
Sorry - that isn't part of the standard regular expression feature set and would be a major change to implement as a non-standard feature.
Peter. |
|
Back to top |
|
|
|