put capital after a tag
i would to put in capital the letter which is just after tag <h1>
i have a lot of <h1> tag with different letters after, not always the same
is there a solution with notepad++
As is usually the case, supplying some real data would have helped clarify your situation, but I found that if I took this made-up data:
<h1>hello</h1> and <h1>there</h1> or <h1>kat75</h1>
I could change it with a Replace-All action into this:
<h1>Hello</h1> and <h1>There</h1> or <h1>Kat75</h1>
with this replacement:
☑ Regular expression -AND- ☐ . matches newline
The key part here is obviously the \U (indicating what follows should be converted to uppercase) in the Replace-with.
it works fine
More information on these case conversions may be found here in the section on “Boost”.
Hello, @kat75, @scott-sumner and All
And if you want to normalize the text, between the starting and closing tag <h1>, in order to obtain :
A first capital letter
All the subsequent letters lower-case
Just use the regex, below :
For instance, the line :
would be replaced, as below :
\U\1\L\2could have been used, as well ! In fact, the next global case modifier
\Lstops the previous case modifier action.
Now, let’s suppose the replacement
\u\1\2. Then, only the first letter, of the text, would be changed upper-case. Similarly, the
\lform changes the following single character lower-case.
For an equivalent regex, using the form
\U, you would have needed the regex
\U\1\E\2, because the syntax
\E, when used in replacement, stops the global case modifiers
thanks scott and guy