SECTION 1 Source Code Editing

Tip 1: Outsmart Search & Replace (1)

The Search & Replace dialog (Ctrl-H) supports regular expressions, making it an extremely powerful tool when searching and replacing text.

Regular expressions use a special syntax that can express a wider range of search patterns than plain strings can. For a complete list of regular expressions and how to use them, see http://java.sun.com/javase/6/docs/api/java/util/regex/Pattern.html.

Here are a few examples of symbols that are commonly used in search terms.

image  \n stands for a newline character.

  \w stands for any alphanumeric character (as opposed to whitespace or punctuation). ...

Get 100 NetBeans™ IDE Tips & Tricks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.