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
1answer
42 views

Automatically clear “Find what” parameter after using Find and Replace box

Is there any way to clear "Find what" (Ctrl+F) search parameter when after a search using "Find and Replace" on Excel? I realized it is not possigble to use Ctrl+A to select all the text inside the "...
0
votes
1answer
15 views

Use Word Find-Replace to Highlight Many Instances of the Same Text

We used to be able to use Find-Replace in Word 2010 to highlight all instances of a specified text string. The steps were simple: In Find, type the text. In Replace, select Format > Highlight. Either ...
0
votes
1answer
17 views

Adding new line to string

I have a line that looks something like: 186 then some text 185 more text 184 blanks I would like it to be reformatted to look like 186 then some text 185 more text 184 blanks How can I do this ...
1
vote
1answer
70 views

How can I make this replace operation with a wildcard in Sublime Text?

I have 100 objects like that: { "_id": "5eb45c2738ae2549000ddb09", "category": "Vel aliquid quas", "title": "Incidunt incidunt quae ut et in provident ut est rerum." }, { "_id": "...
0
votes
1answer
42 views

Notepad++ How to delete sections of text starting with a line containing a certain phrase

I'm trying to edit a few calibre files that have tags attached, but the tag line is not always formatted the same. Eg. div class="pcalibre1 pcalibre2 pcalibre tags-list" div class="pcalibre1 ...
0
votes
0answers
9 views

Search / Find / Replace in Firefox Developer Tools Debugger

I've looked all over but I can't find anything (not even in the MDN Firefox Developer Tools Help Pages) which explains how, when I'm looking at the Debugger in Firefox Developer Tools I can request to ...
0
votes
1answer
36 views

Check and replace file same name only

Example: Folder 1 has A to Z file name Folder 2 has only V to Z file name I want to move then replace file in Folder 2 only with same name from file in Folder 1. is there a cmd/script...etc to do ...
0
votes
2answers
18 views

How to delete text not matching regex in phpStorm

Having a JSON logfile, I want to extract the product IDs to have a clean list: {"comment": "comment.", "product":"100"} {"comment": "comment.", "product":"555"} {"comment": "comment.", "product":"100"...
0
votes
1answer
37 views

Prepending Text To Every Line Within Capture Group

What I have: X ( 1 2 3 ) BREAK Y ( 4 5 ) BREAK Z ( 6 7 8 9 ) BREAK What I'd like: X,1 X,2 X,3 Y,4 Y,5 Z,6 Z,7 Z,8 Z,9 I'd prefer to figure out how to do this using RegEx in Notepad++. As I ...
1
vote
1answer
109 views

Using FART (Find and replace text) unable to replace text

My goal: replace a string in a json file, using FART (OR ANY METHOD THAT WORKS) While having it be run via a Batch file The code I have is: fart.exe launcher_profiles.json "1.1.2-DXF.12.2-14.23.5....
0
votes
1answer
54 views

Replace multi line long text in multiple files (notepad++ or other solution)

I need to replace multi line long text in 5000 files. I tried with notepad++ but it remove part of my text to search, i think have a limit of characters. I tried ToolBucket plugin for notepad++ but ...
1
vote
1answer
27 views

Finding spaces OR commas with wildcard search

I'm writing some macros that will automate frequent cleanup/text formatting tasks in the bibliographies I edit. For background, these bibliographies often contain citations for chapters from edited ...
0
votes
2answers
51 views

How to remove lines that don't contain at least one uppercase letter, lowercase letter, number and special symbol in Notepad++

After looking across the internet for about an hour, I decided to register an account and ask a question :) I'd like to remove all lines that don't contain at least one uppercase letter, lowercase ...
0
votes
1answer
21 views

Word: Replace text around a given string between two nearest paragraph marks

Using Word 2013 ... Say I have a document that has lots of instances of similar but not exactly the same text between paragraph marks, like so: text text text ¶ somethingXYZsomething¶ text text ...
0
votes
1answer
52 views

How can I find, replace, and do substitutions for italicized text in Microsoft Word?

I'm trying to use a regular expression to find and replace italicized text in a long Word document to move the text into a LaTeX document, so I want to replace Word's formatting with \emph{...} syntax....
1
vote
1answer
95 views

Notepad++ Find replace code blocks

So, in my document, I have many code blocks like the one below ```javascript class App extendsReact.Component{ state ={ isLoading:true, users:[], error:null } render(){ <React.Fragment&...
0
votes
1answer
187 views

Replace an apostrophe in excel?

I have a large database in excel containing text data that I plan to export to a set of PDF files. Some of the lines of text are bulleted with dashes so excel reads some of my cells as formulas and ...
0
votes
0answers
70 views

Notepad++ Change Multiple Lines on Multiple Documents for XML File

I have an 300+ XML configuration files that I need to change the open time on. Unfortunately all the current start times are not uniform so a simple 1 for 1 replacement does not work. Also the start ...
0
votes
0answers
29 views

How can I perform a search for a form feed character in Excel?

I'm sorting out a document for someone that downloaded huge land ownership files for counties in a city. It was initially in CSV format. I realized that certain files had an unidentified character ...
0
votes
1answer
16 views

Find and replace words on Microsoft Word with a proper case

I came across a problem that I want to replace a string on Microsoft Word, say "ABC" with "abcdef". I thought it would be something very easy to do using control+H "Find & replace function" but it ...
1
vote
1answer
29 views

How to Replace in RegEx Notepad++

I cant seem find any answers on this but how does one find and replace in notepad++. For example: I am trying to find all lines that contain 4 pipes between the amount and name. How can I find this ...
0
votes
1answer
58 views

Find & Replace Merged Cells in Excel

I've searched for solutions but in my version of Excel and others I've tried (Excel 2016 and Excel 2008), I don't see any option to Find Format in order to find Merged Cells like all the tutorials I'...
3
votes
1answer
113 views

joining lines while adding white-spaces to select strings in CMD does not always work

here is an ordinary .bat that joins all lines and leaves a whitespace between the resulting strings. @echo off setlocal EnableDelayedExpansion set row= @For /F "EOL=|" %%x In ('^""%__AppDir__%find....
0
votes
2answers
112 views

How do I concatenate a line to the end of the next line using Find and Replace?

I have a file of the format: Chapter 1 12:45 First Video 39:21 Second Video The video lengths are preceded by tab characters. I want to convert this into: Chapter 1 First Video 12:45 ...
0
votes
1answer
64 views

How to increment all numbers in selected text?

How to increment all numbers in selected text? For example: turn this text: hello1 hello2 to this: hello2 hello3 Windows 10. Any software with this functionality would be fine.
1
vote
0answers
65 views

Find number and replace by counter in Notepad++

I want to find "1" and replace by counter 123... {"wallpaper_index":"1", {"wallpaper_index":"1", {"wallpaper_index":"1", {"wallpaper_index":"1", {"wallpaper_index":"1", {"wallpaper_index":"1",
3
votes
2answers
160 views

How do I express a Question mark (?) when searching with a space and text in Notepad++?

Example That is so good isn't it? Yes it is I want to find a question mark that is followed by a space and an upper case letter. Then replace it with: That is so good isn't it? Yes it is I ...
1
vote
0answers
34 views

Windows Notepad, how can I disable saved find-and-replace values?

In Windows' Notepad, when I use the find-and-replace feature, it saves the values I used therein and displays them next time I use the feature. I don't want it do. How can I disable this? I can see ...
1
vote
1answer
33 views

Word - Find and replace wildcard/expression

Trying to figure out quickest way to set a style for specific lines of text in Word. I've got a doc that has CHAPTER 1, CHAPTER 2, etc at the beginning of a page. The lines with CHAPTER x are all set ...
0
votes
0answers
14 views

Editing Specific numbers in a .txt file with matlab GUI

I have a bunch of different template .txt files that I want to be accessed by a user in matlab. these templates look like this, but with key differences that I will explain: LOAD BOX 1 SUBJ ...
2
votes
1answer
31 views

replace keywords in a file by keywords\index{keywords} from a list file

I am trying to produce index entries in a LaTeX file under Linux. I have two files: file1.txt has all the index entries cats\index{cat} dogs\index{dog} elephants\index{elephant} rats\index{rat} The ...
2
votes
1answer
38 views

Notepad++ “Replace in Files” with complex folder filter

I'm trying to replace something in all .js files that have a folder called Views somewhere in their pathname. This includes these samples: C:\Project1\Web\Views\Entity\List.js D:\Project2\Views\...
0
votes
1answer
39 views

Sublime Text 3: How to create reusable custom find and replace

I am trying to see if there is a way to replicate a feature in Sublime that is available in Dreamweaver. With Dreamweaver you can create custom Commands using a javascript file for the actual command ...
0
votes
0answers
25 views

Script to replace string in files with parent folder name

I have a series of folders which each contain an index.html file. Within these files is a div tag with an ID of S030_010. What I'd like to try and do is replace this string with the parent folder ...
0
votes
0answers
34 views

find and replace string in a .txt that contains double quotes

I have a input.txt file that contain this text: interlaced="1" num="25" Via batch I need to find all the occurences like that and replace into interlaced="0" num="50" If possible I prefer use fart....
0
votes
0answers
76 views

Change timestamp in log file

I have a log file that has many lines that start with a timestamp. Example: *|20191102015157......* These timestamps are wrong and I would like to know if there is a way to modify the timestamp as ...
1
vote
1answer
23 views

How can i modify Unique ID in Excel?

I have one unique ID column which I want to update to my New ID column which is just E inplace of 10. | ID | New ID | |:-----:|:------:| | 10022 | EO22 | | 10157 | E157 | | 10015 | E015 | | ...
2
votes
0answers
82 views

Sublime text. Keep find in files panel open after running search and/or replace operation

I am using Find in files functionality of sublime text regularly (default key binding Ctrl+Shift+F) Pannel can be hidden by hitting Esc Whenever I hit Find the pannel itself disappears after ...
1
vote
2answers
258 views

Pipe sed capture group through external program before replacing?

Is there a way for sed to pipe a capture group to another program, making \1 in the regexp's RHS equal to the output of that program? For example, running sed 's/lorem ipsum \(foobar\)/\1/g' file....
1
vote
1answer
51 views

Notepad ++ Insert at the beginning of nth line that contains a string

I am doing some Gcode machine instruction and I need to add an instruction in the beginning of the line where every 1st instance of F 180.0 but skip the second eg G00 X 0.0000 Y 0.0000 Z 10.0000 G00 ...
1
vote
0answers
24 views

Find and replace text from 2 different files

I have two files and would like to find and replace the strings. Example: In file 1 xyz@gmail.com: asdasda In file 2 asdasda: run_now Desired output xyz@gmail.com:asdasda: run_now OR xyz@...
0
votes
0answers
34 views

Mass Find and Replace between an XML file and a PL file

I'm trying to edit a playlist file which references Arcade ROMS, which are named in MAME standard of six letters, but I need the reference to be replaced to the actual name in a database so I can pull ...
0
votes
1answer
95 views

Use word, Find & replace to remove date and time

I have a massive recorded calls word document where calls are scripted out for our records. The program we use has added the date and time in front of EVERY line of text so its a very clunky record ...
0
votes
1answer
43 views

Microsoft Word Find (letter paragraph letter) and Replace paragraph with space but leave letters

In Microsoft Word I want to Find (letter paragraph letter) (^$^p^$) and Replace the paragraph with a space but not change the letters. Example: Hello^pWorld Output: Hello World Current Output: ...
0
votes
1answer
22 views

How can I search for a multiple line string in Microsoft Office?

I have this string in many places in my word document. this is a string that spans multiple lines How do I find and replace this string in my MS Office?
0
votes
0answers
13 views

regex replace with textpad

, "-LiXbf6B8NvCZy4BM1Gu" : { "download_url" : "http:/ 139.jpg", "id" : "139" }, "-LiXbf6B8NvCZy4BM1Gu" : { "download_url" : "http:/ 139.jpg", "id" : "139" } I ...
0
votes
0answers
24 views

Finding zeros with nothing before or after in word document tables

I have a word report filled with tables. I need to do a find and replace on all the cells with a single 0 or 0.0 and replace them with something else. Using wildcards I tried things like: [<0>] [!...
0
votes
0answers
67 views

WIldcards in MS DOCX Find-Replace

I have long list of emails in docx. Each email/line. There are several xyz[at]example.com and xyz[at]xyz.png type entries. How to delete entire line/email by searching for .png and [at]example.com? ...
0
votes
0answers
51 views

NSSM AppParameters edit is not working using Batch Commands

I am running a command like nssm.exe get MyWindowsService AppParameters and its output is -jar E:\test\test-service.jar --datasource.abc.url=jdbc:oracle:thin:@localhost:1521/TEST --jmxPort=35053 --...
0
votes
1answer
56 views

Word 2016 use find and replace to add period after “et al”

I'm trying to find all instances of "et al(space)" in a document and replace them with "et al(period)(space)". In Find and Replace with wildcards, I'm typing: Find: (et al)( ) Replace: \1.\2 Word ...

1
2 3 4 5
12