Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search Multiple string using Visual Studio IDE Find and Replace

I want to find multiple string from a line in files. For example,

This is sample text

I can able to find the string is sample text in the line.

But just I want to find the string contains the strings is and text. Is it possible to find using Visual Studio IDE "Find and Replace"?

Is there any other way to find multiple strings using Visual Studio IDE?

like image 658
Jesuraja Avatar asked Aug 08 '14 06:08

Jesuraja


People also ask

How do you replace multiple words in Visual Studio?

You can find and replace text in the Visual Studio editor by using Find and Replace (Ctrl+F or Ctrl+H) or Find/Replace in Files (Ctrl+Shift+F or Ctrl+Shift+H). You can also find and replace only some instances of a pattern by using multi-caret selection.

How do you search multiple keywords in VS Code?

How do you search multiple words in VS Code? Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How do I select multiple text in Visual Studio?

For multi-select, you can use CTRL-SHIFT-L. You can click over the word and then press key combinations(CTRL-SHIFT-L) this will select all same types of words from the file(vs-code).


1 Answers

I myself found the solution for this.

Using Use Regular Expression option in Find and Replace dialog. I entered following in Search term text box and find.

is(.*)text

I got the result as expected.

like image 183
Jesuraja Avatar answered Oct 05 '22 04:10

Jesuraja