[Webchange-list] New version: 2.95.26 -> Change case in search and replace

Vince M Hudd vince at softrock.co.uk
Wed Apr 4 15:40:02 BST 2012


Vince M Hudd <vince at softrock.co.uk> wrote:

> As a simple example:
> 
> If you had html that looked like this:
> 
> ----8<---- <html>
>  <head>
>   <title>Test Page</title>
>  </head>
>  <body>
>   <h1>Title 1</h1>
>   <p>Some text
>   <h1>Title 2</h1>
>   <p>Some text
>  </body>
> </html> ----8<----
> 
> Entering the following in the relevant fields in WebChange's front end:
> 
>  Replace: <h1>*</h1>

Make that: |<h1>*|</h1>

(I forgot to escape the < characters, which are wildcards. This isn't
necessary in the replacement string, where * represents both * and <
wildcard matches.)

>  With:    <h1>*+0;</h1>
> 
> And clicking 'Process' would result in:
> 
> ----8<---- <html>
>  <head>
>   <title>Test Page</title>
>  </head>
>  <body>
>   <h1>TITLE 1</h1>
>   <p>Some text
>   <h1>TITLE 2</h1>
>   <p>Some text
>  </body>
> </html> ----8<----
> 


-- 
Soft Rock Software:                   http://www.softrock.co.uk
Vince M Hudd:                         http://misc.vinceh.com/about-vinceh/
RISCOSitory:                          http://www.riscository.com



More information about the Webchange-list mailing list