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

learn more… | top users | synonyms (1)

1
vote
1answer
1k views

Search and replace registry entry value using powershell

I'm trying to update a set of registry keys, a set of properties need to be updated with a new value based on the old value. I tried using the following: Get-ItemProperty -Path ...
1
vote
2answers
945 views

Regular expression to replace in TextPad

I need to replace this: HSOD,BASE,DFLT,001,06-19-2012,[any string],1,0,0 With this: HSOD,BASE,DFLT,001,06-19-2012,[any string],1,0,N where the [any string] part needs to be a wild card.
1
vote
2answers
4k views

Find and replace block of text (with other blocks of text) in multiple files [closed]

Is there a FREE utility out there for replacing blocks of text? Something like notepad++'s find in files works for simple lines but in my case it's unusable since I need to target the entire block to ...
1
vote
2answers
232 views

replace all names with an alternative using Stream editor (Sed)

I got this question on a task. Nothing works.. Can someone help me? Write a sed script that replace all names with an alternative, search for every words that: Start with a capital, Longer than ...
1
vote
2answers
3k views

Excel - find and replace images?

I exported a huge page from confluence into excel and it has a few columns that contain images. I need to convert them into text before I do another transition but this would be totally killing to do ...
1
vote
1answer
2k views

Search & replace with wildcards and variable length strings in Notepad++

I am trying to edit a series of strings in Notepad++ using search & replace. What I'd like to do is to search for a particular piece of HTML code, then delete a portion of it. The challenging ...
1
vote
1answer
2k views

How can I insert italics in MS Word Find and Replace?

I've written a long document and just read the branding guidelines that says the 'e' at the start of a word needs to be italicized, e.g. eBahgum, the e is italics and Bahgum isn't. I've written this ...
1
vote
1answer
6k views

Replace foreign character codes in Notepad++

I'm trying to edit a file with Swedish characters in Notepad++, but the Swedish characters when I view it in Unicode (was originally ANSI) show up as tiny black marks with parts of hex code in them, ...
1
vote
4answers
12k views

How do I insert line breaks into a text file - not programming, not fixed width - via find & replace

This is a different from someone else's similarly-titled question. Neither Excel nor OpenOffice allow users to specify line delimiters, so I'm trying to replace semi-colons with line breaks. How do I ...
1
vote
2answers
7k views

MS Access 2007, find and replace character with new line

In Access 2007 how do I replace a character (say "~") with a new line. I have tried using the Replace box with ALT+010 but it is not accepted as new line. Any suggetsions?
1
vote
2answers
344 views

How can I do a batch find replace?

I'm writing a piece of software which requires the creation of a number of nearly identical blocks of code that only vary in a few locations which need to be replaced by a unique value for each ...
1
vote
4answers
2k views

using sed to replace two patterns within a larger pattern

Using sed how could I replace two patterns within a larger pattern on a single line? Given a single line of text I want to find a pattern (Let's call this the outer pattern) and then within that ...
1
vote
1answer
2k views

Is there a GUI in Ubuntu for folder based find and replace?

Is there a GUI in Ubuntu for directory based mass find and replace? Preferrably one that works similar to Adobe Dreamweaver's find and replace system.
1
vote
1answer
24 views

Delete metadata in multiple files

How do i use Find and Replace in Files in Notepad++ to delete the following lines from multiple files? <meta name="perc_linkback" id="perc_linkback" content="xxxxxxxxxxx"/> and <link ...
1
vote
0answers
21 views

How to replace HTML code using MS Word 2010?

I’m trying to delete the CSS from my code using Word 2010. I’ve searched online on how to find and replace text, and tried some but none worked. Below is the code i don't want. ...
1
vote
1answer
45 views

How can I add a fixed amount of time to all “hh:mm” strings in a document?

I have a document that's a transcription of a video interview. The video itself has embedded SMPTE timecode as well as burnt-in timecode (BITC). The SMPTE timecode and BITC correspond to the time of ...
1
vote
0answers
223 views

How to replace only text in a selected column

When I select some text in a column, replace/in selection will become grey. How can I replace text only within a column of selected text in Notepad++?
1
vote
0answers
45 views

How to find and replace lines in one file that match the pattern of lines in another file

I have a scenario with two documents. The first doc has lines of text, and the second doc also has same text with different text before and after this text. They need to be replaced. Doc 1 ...
1
vote
1answer
59 views

Multiple Find/Replace queries over multiple files: replace one by one

What I want is this (Software can run on Linux or Windows, both are available): Supply a list of files in which strings should be replaced (wildcards ideal, but not mandatory) Supply a list of ...
1
vote
1answer
185 views

Remove CR LF for all lines that are not followed by a specific number

I have 14000+ lines of a database, that I want to edit with Notepad++. All these lines should start with 1000 and I therefore want to delete CR LF at the end of those lines that are not followed by ...
1
vote
1answer
530 views

How do I remove HTML from MS Word 2010 document with Find/Replace Wildcards/Regex?

I found a website to help me choose domain names. I have my shortlist which I can't export, but I need to share the list with some other team members first. It also won't let me copy and paste the ...
1
vote
1answer
435 views

How to find and replace in the bookmarked lines in notepad++

I have a problem about how to find and replace in the bookmarked lines in Notepad++. For example my line is <content:encode><em>.... So I bookmark the lines that have ...
1
vote
2answers
335 views

How Do You Replace Individual Periods/Full Stops Without Replacing Decimal Points?

A bit of an awkward one, this; I've been gathering data using an eye-tracker, which gives its output as .txt files (Excel is also an option but there are too many samples so notepad it is). I need to ...
1
vote
1answer
358 views

Search, copy, paste, edit string in hex?

I'm using Windows 7 64-bit. I've got around 10,000 or so files that I want to edit. The trouble is that's just far too much to do by hand. I'll explain what I need to do below. In these files, there ...
1
vote
2answers
4k views

How to search and replace a string in multiple text files (within a directory) with Windows CMD? Part 2

This is in relation to this question . Unfortunately, PowerShell scripts are disabled on the system I am working on. I can't even use a simple (Get-Content). I did figure out how to do change ...
1
vote
1answer
436 views

Notepad++ Undo undoes whole replace history

In Notepad++ (v6.5), having done a series of Find-and-Replace-All's, hitting CTRL-Z seems to undo the whole series. Hitting CTRL-Y redoes the whole series. Can you undo only the last Replace-All ...
1
vote
1answer
778 views

batch script help, find, replace registry keys

I'm trying to figure out why my reg import command is not working in the script below. When I run the reg import fileName.reg from the DOS it works fine but when included in the script below it does ...
1
vote
0answers
129 views

sed without regex

I am using GNU SED for find and replace functionality on large files(upto 2GB). Find and replace characters can contain any characters, hence I want find and replace parameters to be treated as plain ...
1
vote
1answer
54 views

Automatic replacement of expressions

Maybe this can be achieved through (extended) regular expressions, but I really don't know if or how. There seems to be a way to access "things that are found" by using $1, $2, … but I have no idea ...
1
vote
1answer
1k views

Delete specific number of characters after a specific string is found

I have several lines of code and I'm looking for a way to search for a specific string e.g. 'id0=' and delete it and all 10 characters after it, per line. I would prefer a way/macro/addon for ...
1
vote
0answers
345 views

Is there a Sublime Text 2 equivalent to Dreamweaver's “Find and Replace > Search: Specific Tag” feature?

Is there a function within Sublime Text 2 or a plugin similar to this (besides regex)? In this example, I wanted set the attribute border to 0 for every img tag in the document. Or, say, I wanted ...
1
vote
1answer
274 views

Convert Text into a Formula in Calc

I have a bunch of cells in a spreadsheet like the following: 1.48oz/12 I am trying to replace the oz/ with * and then calculate it. So far I have: =REPLACE(G4,FIND("oz/",G4),3,"*") which yields: ...
1
vote
0answers
38 views

how to search and replace a 1000 character long string in ubuntu [duplicate]

Possible Duplicate: How can I do a recursive find and replace from the command line? one of our sites got hacked with a base64 hash that is about 1000 characters long. How can i search and ...
1
vote
1answer
433 views

Prevent inadvertent replacement in notepad++

Is there a way to make Notepad++ to ask for confirmation when replacing all instances of a string in a file or files? This is to prevent inadvertent replacement.
1
vote
0answers
570 views

Sublime Text 2 search and replace multiple words

I want to replace multiple words using regex in just one search accross all files. Something like this: Find: (dyspnea)|(jugular_swelling) Replace: (dispnea)|(turgencia_jugular) And this would ...
1
vote
3answers
179 views

Windows, selective text search and replace within files? [duplicate]

Possible Duplicate: Editor with muti-line search and replace I'm looking for (ideally free) software, which will perform selective search and replace on multiple text files. So I want to ...
1
vote
2answers
842 views

Batch find/replace in text or html files

I have a large collection of html files (thousands), and need to change a single character that wasn't displaying properly on some browsers. Is there a quick and efficient way to do this?
1
vote
1answer
740 views

Any Repeating text/phrase finder function/software for text editor? replace/remove? [closed]

I compile my own PDF for my personal use from texts copied from other sources and other ebooks I have purchased. When I copy texts from other PDFs, the chapter title, page # and book titile appear ...
1
vote
2answers
263 views

Find and replace notepad++ with wildcards

I've read about 15 tutorials on regular expression however I'm clearly not getting as I've been unable to tailor it to my problem. I have one set of code which would be found in many different ...
1
vote
1answer
395 views

How to find and remove external links in (Libre|Open)Office Calc spreadsheet

I have a LibreOffice Calc spreadsheet which pops up a message asking me whether I wish to update external links. I did not add external links myself, but did copy data from another Calc window at one ...
1
vote
1answer
1k views

Change font of all Hebrew text

I need to use different fonts for English and Hebrew in the same document. How can I change the font of all the Hebrew text, possibly using Find-and-Replace?
0
votes
5answers
338 views

On a Mac, how to rename all files ending with a question mark?

I have some files that are like: 123.mp3? I need to rename them to 123.mp3 How can I do this to all the files in a given folder? I'm on a Mac
0
votes
1answer
3k views

Replace With Same Expressions in Notepad++

Let's say I have a text file with two columns of numbers separated by a single tab: 23 45 456 872 1569 489 78 357 789 94 and I want to be able to add an additional tab between the columns. ...
0
votes
2answers
229 views

Replace any number of spaces using regular expressions

How can I replace any number of consecutive spaces, with, for example, a tab in a text editor supporting regular expressions (like Notepad++) To clarify: Replacing every occurrence of one or more ...
0
votes
2answers
981 views

Remove lines not containing a word in Vim

In Vim I often find I'm only interested in lines containing a certain string of text and want to delete all other lines. It's easy to match lines containing a string: :s/^.*foo.*\n// What I ...
0
votes
3answers
147 views

how do i turn a whole file into uppercase?

I have a file on a server on another campus that's all in lowercase that i need to changed to all uppercase. Is there any simple unix command that will do this? [i'm using PuTTy on a PC if that makes ...
0
votes
2answers
83 views

Search and replace text and everything that follows in the same line

How can I search for a certain string in multiple files (with a given extension) in a directory and replace everything afterwards (including the search string) with a blank string? Example I'm ...
0
votes
2answers
583 views

Notepad++ Find & Replace (with regex) issue

I'm going crazy on a weird issue, I've been trying to find this text: CREATE Proc [dbo].[procName] (@EMI_ID numeric(8), @ESYNTH_ID numeric(8), @FLD_ID numeric(8), @SYNTH_ID numeric(8)) As And I use ...
0
votes
2answers
2k views

recursively replace every instance of a word in a directory from linux command line

I have a directory with several subdirectories that all contain text files. In these text files, there is a certain word that occurs over and over again, and I want to replace every instance. My ...
0
votes
2answers
152 views

Find and replace files accross Windows

Is there a way in Windows to find and replace all files? Could PowerShell do this? I have a .dll file that I have a bunch of and would like to update them all with one click. EDIT: I would like to ...