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

learn more… | top users | synonyms (1)

1
vote
2answers
413 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 ...
3
votes
1answer
419 views

Can I delete any line with a given search string?

In Vim, I'd like to search for lines with a given string, then delete them. Specifically, I'd like to find lines with the LaTeX commands \begin{frame} and \end{frame}, and delete them. =
1
vote
2answers
100 views

Trying to cleanse log files on a Linux machine, currently using sed

I have a large amount of log files that I need to remove sensitive data from. The sensitive data is provided to me in a text file and is prone to change. I had hoped to do the equivalent of this: #!/...
0
votes
1answer
313 views

Complex (?) Unix Text Replace Command

What's the command line equivalent of: For every file that contains "AAA" within its contents, find "BBB" and replace it with "CCC" Thus, the command would match and replace BBB in a file: <html&...
1
vote
2answers
747 views

Change YYYY-MM-DD to YYYYMMDD everywhere in file

I can't just delete all of the hyphens, because elsewhere they are used as minus signs. I can find these dates with [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} but I can't figure out how to keep those three ...
0
votes
2answers
10k views

Excel macro: Replace enitre cell contents; replace 1 but not 10, 11, 21 etc

I need to replace a large amount of numbers with words in an Excel spreadsheet. Eg: 1 = hello 12 = goodbye 4 = cat etc. I can do it with the standard search and replace, but i have a large list to ...
1
vote
4answers
3k 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
3answers
292 views

Disable find and replace feature in OpenOffice.org

Can you disable the find and replace feature in OpenOffice.org Writer? We are a school, and the students are cheating by using this feature to avoid reading the entire document. We're looking for ...
4
votes
2answers
3k views

Using search and replace to remove line breaks in Open Office

I've imported a document into Open Office and it has a number of hard returns in wrong places. In MS Word, I could use the search and replace to simply get rid of them all easily, but Open Office's ...
2
votes
1answer
443 views

Add constant value to numeric XML attribute

Background Add a constant value to numbers matched with a regular expression, using vim (gvim). Problem The following regular expression will match width="32": /width="\([0-9]\{2\}\)" Question ...
1
vote
2answers
2k views

command line find/replace help

I've got a set of 5000+ files that I need to do a simple search and replace in. I have been doing it in a text editor (EditPlus) by opening 500 files at a time, doing a global search/replace, saving ...
0
votes
2answers
73 views

Replace “Month Date Time” formatted dates with “Month Year Date Time” formatted dates in multiple files

I have some files in a directory that contain dates that are formatted like: December 29 19:05:58 But they differ referring to the date that the file was created. Is there any way to do a search-...
1
vote
1answer
1k views

How to replace a word with Regular Expression in Microsoft Word 2007?

How can I replace a word with Regular Expression in Microsoft Word 2007? For example, I want to find and replace all \n with some spaces.
13
votes
3answers
21k views

Can I search and replace in a Notepad++ macro?

I'm trying to create a macro in Notepad++ that allows me to do a few standard Search & Replaces. I can get the macro to do everything (add lines, add characters) except search and replace. I can'...
3
votes
1answer
686 views

Something that can search and replace a hex string but for multiple files?

Hi I'm looking for a hex editor kind of thing but for multiple files? Can Windows Grep do this or does it only handle text strings?
3
votes
2answers
7k views

How to search & replace within a cell value?

I have a cell A and its value is 122abb12. In another cell B, I want its value to be the value in cell B but all 1 should be replaced by I - value in cell B should be I22abbI2. What is the function ...
8
votes
7answers
29k views

Find and Replace several several different values all at once

I have a file with multiple instances of Text_1 and Text1 and I need to replace both those strings with Text_A and TextB respectively. Currently I'm doing two Find and Replace functions on each ...
0
votes
2answers
2k views

In Word 2007, how to find&replace using wildcards for find without replacing the substring defined by the wildcards?

I have a document where there are many instances of two pieces of information on a single line, like assigned to John Doe, estimate 2 days and I want them to appear on two different lines, like ...
2
votes
2answers
1k views

Text editor on Windows to delete large block of copyright text in multiple source files?

Optional Background Information: [ The author of a Java open source project I am using has changed the copyright notice in every file in the project. As a result, I can no longer diff between the ...
11
votes
6answers
33k views

How do I find and replace a character in filenames in Windows 7 using Explorer?

I want to replace all the underscore characters (_) with a space () in a filename. How can I do this quickly, when I have lots of _ characters to replace?
0
votes
2answers
328 views

Run Find & Replace tool on multiple Word Documents (Office 2003)

How can I run the Find & Replace tool on multiple Word documents (whether open or closed, doesn't matter to me) in Office 2003? Thanks! OS is Windows XP.
0
votes
5answers
365 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
4k 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. ...
13
votes
1answer
13k views

How can I use newline with the Find-And-Replace in Visual Studio?

I've become rather fond of the "Find-And-Replace" function in Visual Studio. The function lets me replace phrases, words, symbols, or whatever you can type into the textbox on the screen. How can I ...
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 ...
2
votes
2answers
2k views

How can I do a text find and replace with a standard batch file?

Without any additional tools, using just the command line that comes with Windows 7, how can I create a batch file that will perform a file and replace of some text in a file?
1
vote
1answer
785 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
1answer
383 views

Regular Expressions find/replace

How to I do a search for @anydomain.anyTLD using regular expressions?
1
vote
1answer
637 views

How to replace every text in a Mac folder?

In Mac OS, how do I find and replace a certain text in all of a directory and its sub directories?
0
votes
2answers
1k views

I want to replace a number with successive numbers, starting at 1 and going up

I'm aware that this is something people can easily program, but I'm not familiar with those things, so I was hoping there was an easier solution. I've edited a large database of questions, including ...
1
vote
2answers
731 views

How to scrub a document of all text between brackets with find and replace

I have a log file and I need to find all instances of <password> hash here </password> and remove the hash and replace it with some dummy text like aaa-aaa-aaa-aaaa. The recurring search ...
8
votes
6answers
23k views

How can I search and replace in multiple Word files?

I am looking for a way to do search and replace in many Word (.doc) files (for the purpose of automation of the process). The software I found so far only allows me to search, but not replace. How ...
2
votes
4answers
550 views

Text-Editing program : muti-search-replace/multi-regex?

I have a long and arduous text file, and I need to do lots and lots of the same search-replaces on it inside of selections. Is there a text editing program where I can do multiple find/replace (or ...
11
votes
2answers
35k views

Replace newline character with another in Word 2007

Using Microsoft Word 2007, is it possible to replace the newline character (\n) with some other character? What about vice versa? (That is replace a character with the newline character).
1
vote
2answers
885 views

Subversion / Tortoise : Replace string in all repositories?

Does someone know an elegant way to replace a string in all Subversion repositories? Something like: Search for "Facebook" and replace it by "Twitter"? Or is the only possible solution to check out ...
2
votes
3answers
257 views

Is there a find and replace application with multiple rules?

I'm looking for a search and replace tool that takes a list of rules and either a file (or directory) and runs those rules on the files. I have a bunch of different things that need to be changed in ...
2
votes
1answer
2k views

grep + sed for find & replace fun!

I have a dev copy of a website set up that has quite a few hardcoded references to its live counterpart. I would like to replace all occurrences of "www." with "dev." in all files. I think I can use ...
5
votes
1answer
7k views

Notepad++ excluding find filters

In Notepad++ I want to search in all file types except one. For instance: I want to search in all files but not .class files. Can the Notepad++ filter can be configured to work this way?
2
votes
5answers
6k views

How to replace html using dreamweaver's “find and replace”?

I want to do find and replace for example . In dreamweaver's find and replace <p><strong>Business Development</strong></p> into <h4>Business Development</h4> I have to change in ...
3
votes
2answers
1k views

Microsoft Project 2003 - How to do a “find” in non-expanded nodes?

I am using Microsoft Project 2003 find command. When I choose ctrl+f and type a string to search for, MS Project only appears to search tree nodes that are expanded. Is there a way to get MS Project ...
1
vote
3answers
1k views

What is the easiest way to do PCRE-style regexp search/replace for MS Word?

You can do this by cut+paste to another RTF editor that supports them, but this does all kinds of horrid things if you want to reimport the text, like mess up tracked changes. Is there something like ...
9
votes
3answers
4k views

Search and replace tool that can handle multiple files and subfolders [closed]

I'm looking for a tool which can search/replace within file contents for a broad range of file types (i.e. it should, if possible, process the maximum possible number of file types like .txt, .sql, ....
0
votes
2answers
354 views

How to replace spaces with dashes?

I am looking to replace spaces between words in a field with dashes "-" Example: From: "See it here" To: "See-it-here" customer faqs how we can help planning your budget customer case ...
2
votes
1answer
3k views

Komodo Edit: How to use Tabs and Carriage Returns in Find/Replace?

In NoteTab Pro, I could use tabs and returns in the find and replace dialogs by using ^t and ^p. Now I have switched to Komodo Edit which is much more powerful, and I can't find any way to search for ...
4
votes
3answers
7k views

How to find and replace link paths in multiple Excel files at once

We have a huge folder containing office documents on our server. IT wants to change the name of the folder from Mehper_repository to Planning_reports. Since most of the Excel files in the subfolders ...
36
votes
9answers
32k views

How to remove this symbol “^@” with vim?

I have some files that are corrupted with this symbol: ^@ It's not part of the string; it's not searchable. How do I substitute this symbol with nothing, or how do I delete this symbol? Here ...
1
vote
3answers
8k views

Notepad++ find string with a new-line and replace

[Notepad++ Question] How do I use find-and-replace to replace the attribute of a series of tags using expression? Case scenario: Let's say I have a couple of lines of something like this: <li&...
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.
3
votes
4answers
2k views

How do I do a string replace in all PHP files recursively on Linux?

I have a function name that was misspelled, and I want to change it. The function is called in many places of the project. How can I do this with a Linux command on SUSE?
8
votes
5answers
25k views

Find and replace multiple blank lines

How do I use the find and replace function in notepad to delete multiple blank lines in a text file?