Skip to content

Latest commit

 

History

History
67 lines (54 loc) · 2.74 KB

File metadata and controls

67 lines (54 loc) · 2.74 KB
title Finding a String | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
vc.editors.string
dev_langs
C++
helpviewer_keywords
strings [C++], searching
strings [C++]
ms.assetid c2497173-f356-4f77-97d6-f0ac41782510
caps.latest.revision 12
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Finding a String

You can search for one or more strings in the string table, and use regular expressions with the Find in Files command (Edit menu) to locate all instances of strings that match a pattern.

To find a string in the string table

  1. Open the string table by double-clicking its icon in Resource View.

    [!NOTE] If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.

  2. On the Edit menu, click Find and Replace, then choose Find.

  3. In the Find What box, select a previous search string from the drop-down list or type the caption text or resource identifier of the string you want to find.

  4. Select any of the Find options.

  5. Click Find Next.

    [!TIP] To use regular expressions when searching files, use the Find in Files command. Type a regular expression to match a pattern or click the button to the right of the Find What box to display a list of regular search expressions. When you select an expression from this list, it is substituted as the search text in the Find What box. If you use regular expressions, be sure the Use: Regular Expressions check box is selected.

For information on adding resources to managed projects (those that target the common language runtime), please see Resources in Desktop Apps in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

String Editor