Questions tagged [find-and-replace]

Operations that locate specific instances of conditions being met and replacing them.

Filter by
Sorted by
Tagged with
0 votes
3 answers
2k views

Word Wildcard Search and Replace Formula Elements

(vn = vp = 0) Does anyone know if its possible to search and replace in Word, using Wildcards, to italicize the vn = vp ? Also, the same search and replace but v1 = vp , with the subscript numbers ...
Peter Amirault's user avatar
1 vote
2 answers
5k views

Replace text at specific line number with other text using notepad++

I have hundreds of input files that are very similar, but contain slight differences. I want to replace every line 4 in all open documents with another line of text. The search and replace function ...
derelict's user avatar
  • 133
1 vote
1 answer
98 views

Swapping multiple cases of two varying blocks of text, with MS Word find-and-replace

I have a few very long and large documents in MS Word, containing iMessaging history. I want to reorder the current format a bit, so it is more intuitive to read. Currently a sample of one document is:...
Ethan Tison's user avatar
0 votes
2 answers
973 views

Find-replace within hierarchy of XML files

I have around 350 XML files spread throughout the /abc directory. I would like to find all instances where the value of the alt attribute is exactly 'blah blah': <image alt="blah blah" src="../...
Jedi's user avatar
  • 860
0 votes
2 answers
398 views

Adding a specific line after finding a pariticular line

I have a huge codebase containing 400-500 files. In most of the files we have these kind of lines: <cfcatch type="any"> / <cfcatch type="database"> / <cfcatch> ...
Deepak Kumar Padhy's user avatar
0 votes
0 answers
113 views

MS Word Find Style spanning 2 lines that contains text and replace part

I will be creating a macro for this, but first I just want to get the find/replace to function. I have occassions in my Word document where there are 2 lines of Heading 3s in a row. The first line ...
jpsnow72's user avatar
  • 245
0 votes
1 answer
3k views

Replace multiple words in multiple files

I am using Windows 7. I need to replace multiple occurences of multiple words in multiple text files. For example, suppose there are 20 files. I have a list of words to find, and the words to replace ...
AllSolutions's user avatar
1 vote
1 answer
1k views

How to add a constant text to all headings in Office Word

In an effort to manually change my Office Word document to Latex, I would like to change all text with Heading style with a text containing the \section{heading}, in which heading is the actual text ...
Ahmad's user avatar
  • 387
0 votes
1 answer
378 views

regexp search and replace for bash variables

A number of my bash scripts need tidying up before sending them round. One of the thing I would like to do is to use curly braces for all variable names. So everywhere it says $PWD should be changed ...
alle_meije's user avatar
0 votes
1 answer
346 views

Replacing a Incremental number text with constant text

I have a XML file I have replace some text like: <instance instanceCode="ZTEST999523" objectCode="ZTEST999523"> <instance instanceCode="ZTEST999523" objectCode="ZTEST999524"> <instance ...
Timmaraju Pavan's user avatar
0 votes
0 answers
45 views

Excel 2013 find and replace

Excel 2013 find-replace command doesn't allow to me to replace all /, it does find them, but it can't replace them with eg ; Whenever I try to do that, I get a message, that suggests me to add a ' ...
litu16's user avatar
  • 153
2 votes
3 answers
5k views

Notepad++ regex not working

I am trying to use Notepad++ and regular expressions to remove all XML from Windows' events. My regular expression is as follows: Event Xml:(.|\n)+?Event>\n Example Windows events are as follows:...
mythofechelon's user avatar
5 votes
2 answers
23k views

How to replace Unicode Character in Notepad++

I have got a .xlf files that looks like the picture below: I wonder how do I search and replace unicode character "xE5" to "æ" I thought I could search for:^0145 =xE5 and replace "æ", that did not ...
XsiSec's user avatar
  • 276
3 votes
2 answers
202 views

Notepad++ RE Search and Replace

Can someone explain why the following record: 1234 4567 blahblahblah becomes blahblahblah When Search/Replace applied (NP++ v6.9) with: Replace:^\d{4}\h with:(nothing) (Reg Exp) radio on Any ...
Joe's user avatar
  • 31
0 votes
1 answer
95 views

Notepad++ Replace hint for text file

i'm having some trouble about replacing option string. I need to replace <option value="91">Afghanistan</option> need to become <option value="Afghanistan">Afghanistan</option&...
user1873662's user avatar
1 vote
1 answer
891 views

How to find wild card value and append to it

I have part of the hundreds of lines similar to : [vc_single_image image="55"] How can I change the lines so they all get appended img_size="full", resulting in [vc_single_image image="55" ...
X12's user avatar
  • 11
1 vote
1 answer
5k views

Word - find/replace highlighted text with shaded text AND preserve all other formatting?

I create new documents from source material that others send me, and use Word's built-in gray highlighting to indicate text in the source file that's been dealt with in the new document (equivalent to ...
RJo's user avatar
  • 553
1 vote
1 answer
305 views

Replace "bla": "*" to "bla": * with wildcards Word 2016

I've a lot of data in my Word file in I'll to replace some content. The content I'll replace is show in example below: // original data I'll replace { "nummer": "1", "jaar": "2010", "...
H. Pauwelyn's user avatar
1 vote
1 answer
413 views

Add four spaces at the beginning of every selected new line in batch

In order to add lines of code to a post properly, I'd like to add four spaces (U+0020) at the beginning of every selected new line, the previous line ending in a paragraph break, so that I can just ...
GJC's user avatar
  • 165
1 vote
1 answer
2k views

exclude specific strings of words using wildcards

I cannot seem to come up with the appropriate wildcard (I suppose it must be [!]) which would exclude from the expression argument[oales]{1,4} the following three words argumentos argumenta ...
GJC's user avatar
  • 165
2 votes
2 answers
17k views

Notepad++ - replace every first space of a line

I know there are a lot of these types of questions but I can not find a way to alter one of the existing solutions for my problem. My text file looks like this: word<tab>word<space>...
Trynox's user avatar
  • 33
0 votes
1 answer
2k views

How to add quotes to a datestring notepad++ regex

I have a huge text files with date strings in the first column. For further processing, I need to have the date strings in double quotation marks: 2015-11-11 00:00:00.00,59,... Should end up like ...
Buzz's user avatar
  • 103
0 votes
1 answer
56 views

How to work around the impossibility to find zero or more occurrencies in Microsoft Word?

How would you proceed about the following find and replace in Microsoft Word? Find what? D.Lgs. (that can be any combination of lower or upper case, plus the dots may or may not be there, i.e. I ...
user avatar
0 votes
2 answers
265 views

Extract One letter and three numbers from .txt files using Notepad++

I would like to extract from many .txt files a certain data in Notepad++. It has a lot of data in one file, but I only need specific... This is what looks like in a file: ©Q Ńü Vý 8 ź) €...
kiki1989sb's user avatar
8 votes
1 answer
65k views

Replace string with proper tab character in Notepad++

I have a string like this: "001234","123","","Automated Letters""\t""Arrears Advice","\\PATH\FILE.doc" Instead of Automated Letters""\t""Arrears Advice I need Automated Letters Arrears Advice ...
Our Man in Bananas's user avatar
6 votes
1 answer
5k views

Is it possible to search and replace formatting in a LibreOffice Writer document with named styles?

Say I have a document in Writer that somebody who is ignorant of styles has created by manually setting a certain font to various areas. Now I want to improve the document by upgrading the manual ...
hippietrail's user avatar
  • 4,573
12 votes
2 answers
5k views

How do I delete lines without "." in Notepad++? [duplicate]

In Notepad++, I have many lines in the format: abc.xyz where "abc" might have space or - or numbers. How do I delete lines without "."? So if a line does not have any ".", I want it removed ...
Chen Stats Yu's user avatar
2 votes
1 answer
411 views

Overlapping replacements with sed?

Suppose I have an input string: ,,a,b,c,,,,d,e,f,,,g Is there a simple sed command that can insert something between every pair of consecutive commas? That is, what can I use to convert the input ...
user avatar
3 votes
1 answer
151 views

How can I Find and replace all text that has a style in MS Word 2013 without changing style on line below

I have a MS Word 2013 document with several headings that are styled as "Heading 4". My goal is to replace all text that is styled as "Heading 4" to ###### and style "Heading 5". I use the ...
jpsnow72's user avatar
  • 245
0 votes
2 answers
2k views

Adding or Replacing text within hyperlinks

I am very confused after trying to explore how this can be done. Its very simple but yet cant find a solution. What I wish to know is the following. I have three separate documents, all of which are ...
Mace's user avatar
  • 1
7 votes
3 answers
16k views

Notepad++ Regex to replace the 4th character of each line in a text file.

I have a large text file and want to replace the 4th character of each line. Cloud you please suggest a Regex to do that in Notepad++?
user550964's user avatar
5 votes
3 answers
5k views

Remove trailing whitespace at the end of table cells

I have opened a PDF file in Word in order to edit it (the original Word document is lost). During the conversion, each line of text and each table cell was given an extra space. Of course, they don't ...
Tim Pietzcker's user avatar
1 vote
1 answer
2k views

Replace multiline string by another multiline string in a markdown file on OS X

I want to replace a multiline string in a markdown by another one (also multiline). I think perl is the best option. E.g. i want to replace ## Exercise 1 some text some more text ## Points by ##...
Jakob Benz's user avatar
0 votes
1 answer
354 views

How to stop OpenOffice 4 from replacing your -- double-dash with a single long dash

I was trying to document some command lines in Linux that use a double dash --option-name and was annoyed that OpenOffice/LibreOffice was replacing the double-dash with a single long dash (U+2013). ...
JimLohse's user avatar
  • 141
0 votes
1 answer
408 views

Word 2013 can find, but can't replace

I want to replace all double spaces () in one of my Word document to single space (). To my extreme suprise, my copy of Microsoft Word 2013 Home is able to find double spaces, but isn't able to ...
trejder's user avatar
  • 11.2k
0 votes
2 answers
106 views

Ubuntu replace expression in dir and all sub directories

How can I replace an expresion that has a forward slash with another in all dirs and subdirs? I used this to find: grep -rnw "/var/www/site" -e "app/COD1" And now I want to replace: "app/COD1" with ...
danny2015's user avatar
4 votes
1 answer
6k views

How can I convert *.vtt subtitles to *.srt subtitles using regex (regular expressions) in notepad++?

As I learned, every line in a .vtt file starts with something like this: 00:00:06.984 --> 00:00:12.020 (line.1) But it should be like this for a .srt file: 00:00:06,984 --> 00:00:12,020 (...
eternal's user avatar
  • 181
0 votes
1 answer
82 views

How to replace all matching values of evaluated formulas in Excel 2010 now that the option is removed from the find/replace dialog box?

As of Excel 2010, it seems a basic function has been removed. In the Find/Replace dialog box, the "look in" option has historically had "formulas, values, comments" in it. Now those options only ...
f.thorpe's user avatar
  • 141
5 votes
3 answers
12k views

How to identify horizontal tabs in Excel and replace it

I have thousands of data in my excel file, they are scraped data from various websites, initially stored in CSV files then migrated into Excel. This data is for use of my web server. Now my problem ...
Joel Min's user avatar
  • 207
1 vote
1 answer
2k views

How to search for two question marks("??") in Excel?

As the title suggests, I need to find and replace two consecutive question marks (??) in my Excel file. I've tried the solution at: How to search for ? (question mark) in Excel . I tried with ~?? ...
Joel Min's user avatar
  • 207
14 votes
1 answer
54k views

How to find and replace line(s) in multiple files using Notepad++?

I have been messing with notepad++ for a bit now and am confused as to how to go about doing this: I have a line in multiple files (Within a root directory) that I am searching for. Example: Brittany (...
Sh3perd's user avatar
  • 143
0 votes
2 answers
739 views

Multi Find and Replace Html Code

I have a URL error across multiple html files that I need to find and replace. Currently my pages show: src="//https: and I need to find and replace all with: src="https: Does anyone know a way ...
Cris W's user avatar
  • 1
0 votes
1 answer
154 views

Specific use case for wildcards in Notepad++

I'm trying to prep HTML code for further editing in WYSIWYG editor and I want to simplify the process as much as possible. Here's an example of my string <p>C P U xxxxxxxxxxxxxxxxxx</p> ...
Kris K's user avatar
  • 13
-2 votes
2 answers
10k views

How to find and replace a "*" character in a cell without deleting the entire contents in Excel 2010 [duplicate]

I have a large spreadsheet with a number of cells containing text that have a "*" character at the end. I would like to find and replace this character and delete it. This solution doesn't seem to ...
Howeitzer's user avatar
  • 101
0 votes
2 answers
5k views

Excel Find+Replace lowercase after a certain character

I have a column that requires specific formatting for summaries of articles. Everything after a : should appear as an uppercase for consitency Example 1 - Markets: Comment on Ugandan Shilling ...
Dizrali's user avatar
1 vote
1 answer
8k views

Find and replace first digit with notepad++

I have a bunch of numbers like this: 001 001 002 002 002 003 003 003 003 all the way up to 100. using the search and replace is there a way to just change the first number so that i could get it up ...
great_guest321's user avatar
2 votes
1 answer
631 views

Replace a nested LaTeX command with multiple arguments

I'd like to replace the LaTeX command \teilseiten{left col width}{left col text}{right col text} by an nested environment. The problem is, that the second and third argument of \teilseiten contains ...
Simon's user avatar
  • 21
0 votes
3 answers
1k views

How do I replace numbers in specific field bash

I am using FreeBSD 3.2-RELEASE. For example output from last- abelovsk14 1 10-7 22:06 adamov14 5 10-5 22:53 almasi14 1 10-8 22:56 anda13 53 10-6 22:16 andrejko14 51 10-7 01:28 Is possible to replace ...
Daniel's user avatar
  • 35
0 votes
0 answers
399 views

LibreOffice (Calc) | Search & Replace | unable to look for 'comments'

CTRL+F enables the SearchBar (quick search) CTRL+H brings up Find & Replace dialog (more options) I'm unable to find a way to look for comments that are within with a cell (with ability to search ...
fohrums's user avatar
  • 520
1 vote
2 answers
10k views

Remove/Change specific Html tags NotePad++

i have found many similar posts, but non of them answers my question. I would like to replace/remove/change open and close tag with a specific key word. in this case i am trying to remove all tags ...
Alexandr's user avatar
  • 113

1
5 6
7
8 9
14