Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to find the above code and replace with my own code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="">

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="default.css" rel="stylesheet" type="text/css" />


The regular expression I've tried is:


It works when I verified it by the online regex tool.

However, it doesn't work with either UltraEdit (Perl regex search mode)/Notepad++ (regex search mode).

Are there are some simplified/ more efficient and working solutions?

share|improve this question

Use this regular expression (with Regular Expression Engine in the UltraEdit Find dialog set to Perl):


Tested with UltraEdit 16.1. But I think it will work for at least UltraEdit 14 and later.

Ref: Is it possible to match a pattern using a regular expression across a newline in UltraEdit?

share|improve this answer

grepWin can help you.

grepWin is a simple search and replace tool which can use regular expressions to do its job. This allows to do much more powerful searches and replaces.

alt text

grepWin is free and open source.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.