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

learn more… | top users | synonyms (1)

0
votes
1answer
32 views

replacing 2 different words with each other [closed]

I want to replace 2 different text sentences with each other using only Find and Replace which you find amongst the most common word processing packages. For example let say I want to replace: ...
3
votes
2answers
232 views

How to format a string substitute, or a text line, in Vim?

Is it possible to format the replacement string when substituting a match with Vim? Say I have a file with a 2-column table, where the entries in each row are separated with a space. The entries (and ...
0
votes
1answer
78 views

Handling punctuation in text pattern with vim search/replace

In vim we have the :substitute command that searches for a text pattern and replaces it with a text string. How does one handle a text pattern with punctuation in it? Minimum working example: the ...
0
votes
1answer
64 views

Mark all URLs ending with .se (Notepad++)

I got a massive document with text. I want to mark all the URLs ending with .se I managed to mark the part of the url just before .se with \w+\.se. But some of these URLs got 3-4 subdomains. So if I ...
0
votes
3answers
96 views

How do I exclude match and change only specific character with sed

I am trying to use sed to replace '0' with the word 'correct' (I am using echo $? to validate my script and I want to replace the output of echo). The problem is that I have more text in the output ...
-1
votes
2answers
22 views

Change Identical Code Strings in Multiple, Separate Files in One Command

How can I change strings of code in multiple HTML documents which are all identical, to something else? How can I change this: File A: code1 File B: code1 File C: code1 ... Into this: File A: code2 ...
1
vote
1answer
232 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 ...
0
votes
1answer
778 views

How to find and replace in the between tags in notepad++

I have a problem about find and replace in notepad++. I want to find a space+space in text and replace with just one space. But the area I want to find and replace is between tags (ex: ...
1
vote
2answers
227 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 ...
2
votes
2answers
94 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
0
votes
0answers
46 views

Replace txt with space in a specific column

I am searching for a way to look into a specific column , and if the there is Char in that column (mostly date) I need to replace it with spaces. Example: 123456789(20140109A). Columen number 10 ...
1
vote
1answer
259 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 ...
2
votes
1answer
65 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 ...
0
votes
1answer
522 views

Quick file search for text

I was forced to use Visual Studio and wave off my favourite Notepad++. Now after coming back to Notepad++ I can see how slow it searches for fiels, where Visual Studio had "Solutions" where files ...
2
votes
2answers
2k views

How to replace a specific character between specific words?

Would you be able to help me in finding out how I can use the Notepad++ Find/Replace function to replace a specific character between specific words. Please see the example below, I would like to find ...
0
votes
1answer
24 views

How to replace a character from a variable location of a string up to the last character

Question, please: How do I remove characters starting with _ then all the way to the end. Examples are: FC1-46-SCD-02-008-11_14P will be FC1-46-SCD-02-008-11 FC1-46-SCD-02-0008-11D_0P will be ...
2
votes
3answers
458 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
758 views

How do I find and replace 'whole words only', in Microsoft Word?

I want to be able to find and replace eat with Eat in Microsoft Word 2007. However, I don’t want to replace every occurrence of eat such as those that can be found inside other words such as great and ...
-1
votes
2answers
54 views

How to delete word and all words after that

I have this URL: https://www.facebook.com/photo.php?fbid=611377065590688&set=a.320150204713377.74079.229899403738458&type=1 I want to be: ...
1
vote
3answers
53 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 ...
0
votes
2answers
6k 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.
4
votes
1answer
459 views

ms excel find and replace @ symbol results in broken formula

I'm trying to search and replace in excel, the column is formatted as 'Text'. Find: [@ replace with: @ Whenever this finds a match at the start of a cell i.e the cell contents start with [@ and ...
1
vote
1answer
219 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 ...
0
votes
1answer
58 views

Insert new line before each operator [duplicate]

Suppose I have a line like this: abc + def - vfg * I want my output to be like this: abc def vfg If only a single operator is there, I can replace: \r\n+ with + but how to do it irrespective ...
1
vote
1answer
53 views

Equivalent of find ** in Sublime Text 3

I would like to search all files in a subdirectory where the filenames match an expression (e.g. *.html) in my project. In zsh or Vim one would use an expression like this: subdirectory/**/*.html ...
1
vote
2answers
194 views

How can I remove certain parts of a word document?

I have a word document filled with Physics equations and annotations. I want another word document to be a copy of the first document but with the annotations removed. I have all the annotations in ...
0
votes
0answers
58 views

How can i keep and remove some charecters from specific line notepad++

i have about 1000 of 80000 rows that looks like these lines and with different disposition ...
0
votes
1answer
719 views

Add new line after words matching a specific pattern

I'm trying to add a new line before and after a hyphenated word (one or many hyphens) in Notepad++ Input This is a search-and-replace test which I need-help to figure-out</h2> Output This ...
0
votes
2answers
89 views

replace a specific word in hundreds of files

I have a folder tree structure with hundreds of java files distributed in various sub folders I want to replace a word Foo with FooBar in each and every file Individual instances of Foo should change ...
1
vote
2answers
3k views

How can I find and replace multiple values within selected cells?

I want to run a find and replace on multiple values within a range in excel with values from 2 columns: A with the original string; B with the replacement string. I already found a macro that is ...
2
votes
2answers
159 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 ...
0
votes
1answer
371 views

Script for modifying file content in specified files

I tried searching previous questions but none worked, or I couldn't adapt them to my needs. I want to write a script that asks for: folder criteria old string new string And replace every file in ...
3
votes
1answer
361 views

Saving part of found term when replacing in Notepad++

I want to use Notepad++ to find/replace large chunks of code, but a hefty part of it deals with arrays. How can I put a "variable" in Notepad++'s Find/Replace window so that part of it can be saved ...
0
votes
1answer
381 views

Find and replace numbers in Excel?

I have a spreadsheet with @ 4000 cells containing a summation like (for example) =439+23+678+1 (Stock market data.) Each number in the formula could vary between 1 and 5 digits. I need to replace each ...
1
vote
1answer
65 views

Need help formulating a Vim Search & Replace

I have a large html file in which I need to search and replace over 2000 occurrences of specific string. I could do it manually but I'm sure there is a power Vim search and replace command that could ...
0
votes
1answer
259 views

Find and replace from Terminal and write to a new file with the replaced values

I have a file template.jou that has the following format: /codeline1 /codeline2 /var = var /codeline3 Now I want to replace the var part with different values like A, B and C and then write the ...
2
votes
1answer
6k 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
0answers
78 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 ...
0
votes
2answers
122 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 ...
0
votes
2answers
343 views

Regex replace with Notepad++

In my XML file there are lots of sub strings starting with STDSUP- and then three digits. For example: STDSUP-123. I would like to replace the STDSUP with CCDA. There are some sub strings where ...
1
vote
1answer
87 views

Convert command-line commands from one tool to another in notepad++

I have a script with lots of lines like this: ss Get $/%SS_SOURCE_PROJECT%/DLL/Vim25Service2005.dll -I-Y -R -VL%2 ss Get $/%SS_SOURCE_PROJECT%/97AUTO/*.* -I-Y -R -VL%2 We're migrating from one tool ...
0
votes
0answers
41 views

How do I 'find' and 'replace across multiple documents

Is there a simple way to do a 'find' and 'replace' across multiple Word documents. Need the headers and footers also to be covered for the replacement. Have tried a VB macro from the web but it didn't ...
3
votes
2answers
2k views

Multiple search and replace actions in one large text file

I have a big text file (about 2GB). I want to do five search and replace actions on the same file, and would like to do this in one command. Normally I use vim, open the file, do one replace action, ...
0
votes
5answers
6k views

replace given char with ascii nul in notepad++

Tried extended search --> replace with \0 but does not seem to work. Instead it deletes all occurrences of the char. Could it be a bug ? NB : replacing with \n, \r\n and the like works in extended ...
0
votes
2answers
128 views

Find and Replace

I would like to find and replace a word such as banana and then I'd like to add the number 1 to the first word, number 2 to the second, and No. 3 to the third and so on. there is an easy way or do I ...
-1
votes
1answer
176 views

Grep : Windows version, free alternative? [duplicate]

I am trying to source a tool for performing a search and replace of text files in a directory. I think this is similar to what grep does for linux. I was hoping to find a tool with a gui so I could ...
1
vote
1answer
80 views

Matching html paragraphs with at least one word in all caps

Using regex or anything, I need to match any paragraph which contains at least one all caps word. Then transform it into a header and capitalise all the content of the title. In the example below, ...
2
votes
2answers
239 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. ...
3
votes
3answers
1k views

Substituting a multi-line pattern in an HTML file

I have a series of HTML files that contain two lines like this: <body> <h1>Title</h1><p> <a href="url">Description</a><br> I want to replace this text with ...