Questions tagged [find-and-replace]
Operations that locate specific instances of conditions being met and replacing them.
690
questions
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 ...
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 ...
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:...
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="../...
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> ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ' ...
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:...
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 ...
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 ...
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&...
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" ...
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 ...
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",
"...
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 ...
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
...
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>...
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 ...
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 ...
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 ź) €...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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++?
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 ...
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
##...
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).
...
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 ...
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 ...
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 (...
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 ...
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 ...
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 ~?? ...
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 (...
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 ...
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>
...
-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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...