The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
93 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
0answers
14 views

Find and replace to change order of test response order

I am using find and replace to reformat test banks copied and paste as plain text in MS Word 2011. My pasted text comes from tables, so the test question are in this order: a, c, b, d. I want to use ...
0
votes
1answer
49 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 ...
0
votes
1answer
303 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: ...
1
vote
1answer
39 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
114 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
52 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
453 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 ...
2
votes
2answers
119 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 ...
14
votes
5answers
16k views

How can I do a recursive find and replace from the command line?

Using a shell like bash or zshell, how can I do a recursive 'find and replace'? In other words, I want to replace every occurrence of 'foo' with 'bar' in all files in this directory and its ...
3
votes
6answers
9k views

Regex Replace from Command line

Is it possible to regex replace from command line? Right now I'm using notepad++ to do this. In command line I can only use FINDSTR wich can only locate the mached files/lines EDIT : Maybe it will be ...
3
votes
1answer
129 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
0answers
89 views

Is it possible to search&replace text in multiple files in FreeCommander?

I need to replace occurences of some text in many files. I've found the option in FreeCommander to search for that text in multiple files, but I can't find an option to replace that text in that ...
7
votes
1answer
4k 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 ...
1
vote
1answer
64 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 ...
1
vote
4answers
145 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
2k views

How can I remove unicode characters in a Microsoft Word document?

I'm saving a Microsoft Word document as a PDF but it is warning me that there are a few problems including the fact that the document includes Unicode characters. I'm not sure what characters it is ...
0
votes
1answer
180 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 ...
1
vote
1answer
4k 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
55 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
105 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
109 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 ...
0
votes
2answers
205 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
78 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 ...
3
votes
2answers
1k 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, ...
2
votes
3answers
655 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 ...
4
votes
4answers
2k views

Is it possible to edit a PDF file directly?

I have a PDF file that is produced as part of a help file compilation. There is always late breaking stuff which goes into a text file (e.g. "What's new in this version" type of stuff) and while Help ...
-1
votes
1answer
153 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 ...
6
votes
3answers
5k views

Use Notepad++ to change under_score_case to CamelCase?

I can write a regular expression in NP++ to find under_score_case. I can use TextFX in NP++ to change case to upper and lower case by highlighting and selecting. How can I use either NP++'s ...
2
votes
2answers
187 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. ...
1
vote
1answer
48 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 ...
0
votes
1answer
329 views

How to find and replace an entire line (random last 40 characters) with notepad++ using regex?

I need to replace something like this: userPassword: {SSHA}hLPcGtsS+sUhwlYq/23dsECuRGsvJj59OQXXJQ== with something like this: userPassword:funkypassword I have tried some random stuff I've ...
1
vote
1answer
234 views

How do I set the default search direction in Word's Find and Replace from `down` to `all`?

How do I set the default search direction in Word's Find and Replace from down to all? I really hate how "helpful" Word is by asking me constantly if I want to search the rest of the document.
1
vote
3answers
816 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 ...
1
vote
2answers
2k 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 ...
0
votes
1answer
419 views

Switch characters in MAC address from a variable

This batch is used with a few other files as start-up scripts as a part of the Symantec Ghost Cast re-imaging process for Windows 7 we are about to undertake. Together they totally automate the entire ...
-2
votes
2answers
223 views

“Replace all” using Regular Expressions in Notepad++

So I never actually used Regular Expressions in depth. I've got a config file consisting of thousands of lines looking like this: "Line 1"=18341235645 "Line 2"=123784571 "Line 3"=86273485 "Line ...
1
vote
2answers
319 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.
0
votes
3answers
145 views

How can I perform a large number of different find/replaces?

I have several times had a text document which I need to apply several hundred find/replaces on. These find/replaces do not follow a pattern which regex can be reasonably applied to, and need to be ...
0
votes
0answers
275 views

Simple find/replace for all xlsm and xlsx files in a directory

I have a directory with 20 spreadsheets. Some are xlsx and some are xlsm. I need to replace all instances of "foo", with "bar" in each sheet in each file. I'm using windows. I'm on Windows so I don't ...
0
votes
0answers
36 views

In Windows, how do I do a mass search-replace where I search for a phrase and then copy the phrase with several different phrases?

I use Windows and I use a variety of text editors (NotePad++, Vim, etc). Any application works (since I'm willing to try any of the applications I have). ==== This is what I want to search. ...
2
votes
1answer
1k 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 ...
0
votes
1answer
904 views

Adobe Brackets; How to use the replace regexp function?

I searched the Brackets user guide @github and couldn't find how can I use the the search and replace function inside of the program. A simple example is to find foo and replace it with bar in a ...
0
votes
1answer
2k 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. ...
1
vote
5answers
6k 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 ...
2
votes
2answers
191 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 ...
0
votes
1answer
453 views

Multi-line find and replace across multiple files on linux

I have: Old Google analytics tracking code oldcode.txt New Google analytics tracking code newcode.txt 100+ html files *.html in one directory Is it possible to replace former with latter in all ...
0
votes
1answer
418 views

Using RegEX To Prefix And Append In Notepad++

I found this question on StackOverflow. It worked great but I also need to include lines that have non-alphabet characters in it like: some_name some.name And add prefixes like this: ...
1
vote
1answer
267 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 ...
0
votes
1answer
89 views

How to find and replace number as text?

I have a column with the following content: Column --------- 01.6221 01.6222 01.6223 I need to replace all the "01" with "10", but for some reason when I do the replace, the dot disappears. ...