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

learn more… | top users | synonyms (1)

2
votes
1answer
64 views

NotePad++ - How to remove or replace newline characters?

Within my notepad++ environment, I have the following value on a page... test me out </li> I can search and find the ending </li> value with.... \n</li> but what do I need to ...
2
votes
2answers
453 views

Replace a regular expression within vim with an output produced by a console command with the expression as its argument?

let's say I have a file with the following content: This is a _file_ which has some _special_ keywords, that I would _like_ to replace. I can do a search and replace of the speical keywords ...
2
votes
4answers
1k views

Extracting text from a cell in Excel

I have a long list of items in Column A that includes a code and descriptive text. I need to separate the code from the text description. <ABC,1122, A1> - This is the text description The ...
2
votes
4answers
1k 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?
2
votes
2answers
129 views

Notepad++ regex replace

id like to replace all the random numerical values to a solid value of a code random values ex: DELAY : 214 DELAY : 1243 and id like to replace all them to DELAY : 1
2
votes
2answers
174 views

Replace 'her' with 'him' and 'his'?

Is there a software/script or any way I can replace all the her in a document with him and his wherever which one's applicable respectively automatically? example Calls her and tells her that her ...
2
votes
1answer
7k views

Multi-Line Sed Replace

Consider the following text (incidentally, part of a MySQL dump): CREATE TABLE `table` ( `id` int(10) NOT NULL auto_increment, `name` varchar(100) NOT NULL default '', `description` text NOT ...
2
votes
2answers
1k views

How can I replace around a wildcard in a regex search?

I'm trying to comment out all of the variable type declarations in a script I have, but I've run into this problem a few other times. I'd like to match a string, followed by a variable name, followed ...
2
votes
1answer
2k views

How can I search and replace in Firefox?

I am moderator on a site with lots of structured content and regularly edit posts for poor formatting (in particular Markdown and LaTeX). Many of those tasks are tedious and could easily be performed ...
2
votes
2answers
46 views

Find & replace on a folder of .txt (but only first 1-3 lines)

I have a folder of .txt files. They all look like this: Title: Title of blog post. Tags: tag1,tag2,tag3 Text on the post. Just my thoughts. > A blockqoute Written in *markdown.* Using ...
2
votes
2answers
279 views

Microsoft Word 2010: “replace all” with same word + something else

I want to find all bolded words and replace them with the same word, unbolded, but with a symbol after it indicating that it was bolded. So for example Yesterday, love was such an easy game to play. ...
2
votes
1answer
2k views

Multiple find and replace in a word document

I want to do a series of find and replace operations. Unfortunately, the documents I have to work on are in Word (.docx) format so I cannot script this. These are book chapters so formatting is ...
2
votes
2answers
331 views

Find And Replace strings containing a caret

Consider a string to be replaced in Microsoft Word Foo^Bar Using the Find and Replace dialog, Word interprets a caret(^) character as a control character to help find predefined elements in your ...
2
votes
2answers
377 views

Regular Expression Help Needed in Notepad++

I need to know the syntax for a regular expression (notepad++) to help me find/replace every instance of following string in a text document the string is as follows Where do you want to go next? ...
2
votes
3answers
107 views

using vims pattern-multi-items {n} to match the 5th space in a line

With this entry from our crontab 1 3 1 * * find /var/log/tomcat/* -mtime +61 -type f -delete I want to match the 5th space char so I can separate the command part from the time field part. Cron ...
2
votes
1answer
1k views

Removing HTML tags in Notepad++

I'm trying to remove some tags using the Find and Replace feature of Notepad++. What I'm trying to remove for example is <num> and </num>. Right now I'd input <num> and replace it, ...
2
votes
1answer
91 views

Bug in Microsoft Word with Find and Replace when searching text containing a hyperlink?

I was trying to replace a text with a email address in the middle of it in a Word document. If I only use the Find command, then it works fine, and Microsoft Word finds the text I wanted to replace. ...
2
votes
1answer
141 views

Delete text in excel cell with certain format

How do I easily delete strings in excel cells with certain formatting.I want to get cell with formatted string deleted like the second cell The string could be anything the only thing that define ...
2
votes
1answer
71 views

How can I add an additional line break (paragraph return) to each line break found in an Open Office Document?

I have tons of text that runs together paragraph breaks like so: off the wounded, and with the same calmness and composure as before resumed the watch over his armor. But these freaks of his guest ...
2
votes
3answers
524 views

Word find/replace: add space to postal code with wildcards

Using the “Find and Replace” dialog in Microsoft Word 2003, I want to search a list of addresses for postal codes (Canadian) that do not have a space in them, e.g., M2N3X6 L4C2A9 K5G1S7 and put a ...
2
votes
3answers
205 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
1k 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 ...
2
votes
1answer
4k 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
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 ...
2
votes
2answers
88 views

Sed replace between 2 strings with special character

I have an XML file containing a code and to use it with xmllink I need to remove a link. XML file containing: <xml version="1.0" encoding="UTF-8" standalone="yes"?> <PackingList xmlns="Link ...
2
votes
1answer
359 views

Use perl to do multi-line replacement [closed]

I have to do some replacements in many *.c files. I want to do the replacement like this: original: printf("This is a string! %d %d\n", 1, 2); result: print_record("This is a string! %d %d", 1, 2); ...
2
votes
2answers
674 views

How do I replace all WOrds with FAlse SEcond LEtter Capitalization in lots of Word documents?

I need to mass-correct large amounts of documents in German. I need to handle several hundred pages of text. I have written a macro to do mass find-and-replace operations on common spelling mistakes. ...
2
votes
1answer
511 views

Notepad++ want to use RegEx to seek minimum-length strings

Only been using Notepad++ v 5.92 for a few weeks, and RegEx for a few hours (!!) I want to use Find & Replace for UPPERCASE strings of a minimum length to change them to "Title Case" or "Sentence ...
2
votes
2answers
9k views

Using sed to replace string with special characters in XML file

I am having difficulty getting sed to replace a string of text in an XML file, despite the fact that I have no trouble using grep to find that same string. Since the new string and old string to be ...
2
votes
1answer
3k views

How to find and replace on regedit?

I use win_xp_sp3 inside my virtualbox i was mapped all the xp folder destination into my host machine in regedit. and now i need to change the my username and i don't remember all files i changed. is ...
2
votes
2answers
937 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 ...
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?
2
votes
0answers
68 views

How to find and replace hyphens with minus signs in Microsoft Word 2013?

When editing scientific texts, I often have to replace hyphens incorrectly used as minus signs with proper minus signs (i.e. U+2212). I'm working in Microsoft Word 2013 and trying to use a wildcard ...
2
votes
0answers
81 views

How do I stop command-f from sharing state across applications on Mac OS X (10.8.2)?

If I have a find bar (command-f) open in two applications, and I change the text in one, the text in the other changes to match as soon as I tab over to the second application. Is there a way to turn ...
2
votes
0answers
148 views

How can I add non-breaking space (&nbsp;) in dates using search and replace in DreamWeaver

Example: January 1, 2012 This is the current text, but I want to change the source code to: January&nbsp;1&nbsp;2012 automatically using search and replace. There are multiple dates ...
2
votes
4answers
486 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 ...
1
vote
1answer
3k views

Find and replace a word in one Excel file accross multiple sheets

How do I find and replace a word in one Excel file across multiple worksheets in the same file?
1
vote
4answers
155 views

Search and Replace string in Vim

I have code similar to this: $POST_['%'] where % is any length any letter+numbers string and I want to replace it with mysql_real_escape_string($POST['%']) so far I have built up this command ...
1
vote
1answer
342 views

How to replace text using regex with back-referece in Notepad++?

I'm converting Windows batch script .bat to Linux batch script .sh What takes time a lot is to change the way .bat script use variables. i.e. In Windows @set varName=122 echo %varName% In Linux ...
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 ...
1
vote
1answer
550 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?
1
vote
4answers
5k 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 ...
1
vote
3answers
7k 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: ...
1
vote
2answers
7k views

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

I have multiple text files within a directory, each of which I want to replace every occurrence of the string 1 setlinewidth to 10 setlinewidth. How do I do this via Windows cmd? Please help.
1
vote
2answers
5k views

Replacing last character at the end of each line in a file

I have a file with the format: abc!12345th! bcv!2345568790hg! fjldslj12123344!!flgnjlk! I was trying to figure out how to remove the ! symbol at the end of each line. I tried using "Find and ...
1
vote
2answers
150 views

Delete first half of line in Notepad++

I think the following can be done in a search & replace function. How can I select until yahoo.com: overjoyedradica@yahoo.com:SQOVTJOHEN and turn it to: :SQOVTJOHEN
1
vote
5answers
7k views

Find and replace text in multiple files

I’m hoping someone might lend their time in helping me create a batch file or similar for finding and replacing text in several files. I have tried many “search and replace” utilities but have not ...
1
vote
2answers
41 views

Replacing several strings in a file in one go

Suppose I want to replace all AAA with BBB and all BBB with AAA in a text file. The thing which looks an obvious solution (in Perl or in Sed) is: s/AAA/BBB/g; s/BBB/AAA/g; But this does not ...
1
vote
1answer
219 views

How can I replace “/>XXXXX”/> with "/> within a selection

I have a CSV file which I am editing with Notepad++. There is a section of about 500 consecutive lines where I want to replace "/>XXXXX"/> with "/> where XXXXX are numbers. Is there a way to ...
1
vote
3answers
55 views

How to Copy words highlighted after search directly into command line with shortcut?

Here is the situation, for example, I have several lines like this: foo test foo I searched "foo" with "/" and all the two "foo"s above are highlighted. And now I want to replace "foo" with ...