Find and Replace Wildcards

  • Thread starter Thread starter Matthew
  • Start date Start date
M

Matthew

I have some text (example):
<html>
<body>
</body>
</html>

I would like to do a find and replace like so:
Find:
<*>
Replace:
[*]

With the output:
HTML:
[body]

[/body]



Is there a way to do this?



Matthew
 
Hi Matthew

In the Find What box, use the expression

\<(*)\>

In the Replace With box, use the expression

[\1]

and click Replace All.

It would be almost as quick, and less brain strain, to do two ordinary
non-wildcard searches, one to replace < with [ and one to replace > with ].
 
Back
Top