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

learn more… | top users | synonyms (1)

0
votes
1answer
25 views

Search and replace option in notepad++ for making a dictionary

We've gotten several files from a professor who published his dictionary and we convinced him to make it open source and make it freely available online. So now I've ended up with several files with ...
0
votes
0answers
27 views

How do I bulk replace a hyperlink containing a File:\\ command in excel

I work with Sharepoint 2007 and Excel 2007 In SharePoint I sometimes use a hyperlink with the file command like; (file://\\group.net.dk\sites\S01625\stt\Drawings). This is useful when I want to open ...
1
vote
2answers
66 views

Notepad++ replace .|every 5th line with .}

I got a text that ends on every single line with .| And I need to replace the .| on every 5th line with .}
1
vote
0answers
23 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 ...
0
votes
1answer
26 views

Notepad ++ Find word and replace line above and below

Here's my example : class Item478 { position[]={14186.376,18.035046,18340.531}; azimut=-134.41499; id=734; side="EMPTY"; vehicle="Land_LampStreet_F"; skill=0.60000002; ...
0
votes
1answer
40 views

Replace multiple strings in multiple files

I think the title speaks for itself. How can I replace multiple strings in multiple files? For example, I have the following strings: home.php, blog.php, forums.php, contact.php, etc. And I want ...
-3
votes
1answer
28 views

Find and Replace in all excel files

I am no programmer. Is there a macro/vba/tool that allows me to find and replace in all opened excel files, at once? If not, an external tool that allow me to drag & drop files, because I have ...
1
vote
2answers
92 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 ...
1
vote
1answer
22 views

Vim replace occurences of word with and without first capitalized in one S&R command

eg I have this peace of Java code public String setType(String newType) { this.type = newType: } I select all of it and I would like to search and replace type by model, but regardless of the ...
0
votes
0answers
11 views

Upping all seconds of X value

I have a subtitles file. What regex should I use in Notepad++ to up every line of 2 seconds? 00:01:15,444 --> 00:01:17,613 should become 00:01:17,444 --> 00:01:19,613
0
votes
0answers
44 views

Multiline find and replace wrapper with wildcard inside

I'm trying to put a wrapper around a bunch of fields that already exist. I want to convert this: <div class="editor-label"> @Html.LabelFor(Function(model) model.FirstName) </div> ...
0
votes
2answers
19 views

Notepad ++ : How to Replace as the description

I have lines like these abye/>abye abys/>abys aced/>aced aces/>aces I want it like this abye abys aced aces Is it possible? If it is then please someone show me the way.
1
vote
1answer
37 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 ...
0
votes
0answers
7 views

Find/Replace high lighting

The default high-lighting that MS Office Excel uses when it 'Finds' a cell is too hard to read. Can it be automatically BOLDed or automatically highlighted, and go away when ending Find/Replace?
0
votes
2answers
38 views

How can I perform search & replace in a text file based on conditions?

I have a large text file (.bib) with lots of double entries for some fields. Essentially, the file is a .bib-file (more info here) which has roughly 1000 entries. The content is structured like this: ...
0
votes
1answer
30 views

How to update range of columns in excel

I have an excel sheet where from one sheets's Id used as reference in next sheet. The Id's are sequential. Like this : Sheet 1 Sheet 2 ID Name ID Sheet_1_ID Text 1 ...
1
vote
1answer
17 views

Expression help for Find and Replace in Notepad++ please

how to replace and but symbol (,) after second number between every five numbers by using replace in notepad++ ? replace 00:00:26092 --> 00:00:30552 00:00:36770 --> 00:00:39933 00:00:40040 ...
1
vote
1answer
73 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 ...
0
votes
1answer
73 views

Notepad++ : Do batch text replace

I'm trying to create a dictionary file from several webpages I found online. The dictionary indexes headwords so that they can be easily found in search mode. The information in the webpage is divided ...
0
votes
1answer
57 views

Using Notepad++ search/replace PHP code with regexp

I don't have experience in regexp so I hope someone will able to help me to change faster than by hands Need to replace objects to arrays like $variable -> child; OR $variable->child to ...
0
votes
1answer
45 views

How can I delete before and after EMAIL in notepad++?

I have this: :814, 'pera', 'name1@gmail.com', '2ed', '', 'da', 0.00, '195..110.18'), >815, 'danka', 'name2@gmail.com', 'd3d6', '0655566', 'da', 0.00, '212..65.82'), *816, 'ana', ...
1
vote
1answer
105 views

Remove duplicate lines in LibreOffice / OpenOffice Writer

I'm working on a text file in Writer which is basically a sorted list of words and phrases. It contains some duplicates I want to remove. Normally I would use a regular expression in Search & ...
1
vote
1answer
54 views

Non case sensitive search case sensitive replace

How do I search/and replace like this using sed or another tool FOO => BAR Foo => Bar foo => bar That is: Look for foo regardless of case, and replace with the same case pattern. One ...
2
votes
0answers
47 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
2answers
44 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
1answer
91 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 ...
0
votes
1answer
57 views

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

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 '/path/to/folder' with '/other/dir' in all files in this directory ...
-2
votes
1answer
32 views

Inserting line before lines containing a particular word

How to insert a line before a line ending with a certain word in textpad? For eg: I want to insert a blank line before every line that ends with the word 'Chapter'
4
votes
2answers
364 views

shell script to replace a keyword in a file with the contents of another file

I'm to create a .sh to replace a specific keyword in a file using the contents of an other file. template.html contains a unique string "PLACEHOLDER" it must be replaced with the contents of file ...
0
votes
0answers
68 views

Is On-The-Fly string replacement possible using GreaseMonkey and Firefox

I have looked for means to stop Brightcove videos from autostarting in Firefox and have come to the conclusion it isn't possible without external programming via something like Grease Monkey. However, ...
0
votes
1answer
60 views

Selective Find & Replace to pretty up my C code in Eclipse or Notepad++

I am working on a old C code which have debug statments like this: debug(1, "SomeDebugStmt %s %d", someString, someNumber); ... debug(2, "another SomeDebugStmt number 2 %s %d", anotherString, ...
1
vote
1answer
216 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
1answer
236 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 ...
0
votes
1answer
60 views

Replacing subString in an array with bash

What I got: array[0]="Programm is Running" array[1]="programm is down" What I want: array[0]="Programm is \e[0;32mRunning\e[0m" array[1]="programm is \e[0;31mDown\e[0m" This will make things a ...
-1
votes
2answers
40 views

Adding characters at the end of multiple lines [closed]

What I have: hello What I want: hello1 hello2 hello3 hello4 hello5 But with around 1500 numbers and the word isn't hello. I want to use Notepad++ for this. I don't wanna have to do find: $ replace ...
2
votes
1answer
275 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); ...
0
votes
0answers
236 views

Can't Find/Find&Replace “Purple, Accent 4, Lighter 40%”, all other colors work - Excel 2007

I have a several large Excel tables that I am managing for my current project. Whenever a metric or value in the table changes, I indicate the change by changing the background color of the cell for ...
0
votes
1answer
27 views

Replace '-' char using sed

I have a text file, quite similar to this one: JACK BLACK 123456 -1245368 - BRIDGET RED 1245 548425 + JOHNNY HOMUSS 55482 -4325 - I wanted to use a sed command ...
0
votes
1answer
31 views

grep and search and replace in linux accepting parameters with /

I'm trying to find and replace the contents of a file using grep and sed. grep "#!/bin/bash" ./ | sed xargs -i 's/#!/bin/bash/#!/usr/bin/env bash' How do I make sure that the string #!/bin/bash will ...
-1
votes
1answer
242 views

Microsoft Word Wildcards

This is long, I hope I made it clear! Please ask if something is not explained correctly I have a document that has the word "The" capitalised in many places it shouldn't be. I wish to change "The" ...
1
vote
1answer
89 views

Notepad++ replace every 3rd and 4th iteration

I'm using notepad++ I'm wondering if it's possible to replace every 3rd and 4th iteration in lines of HTML. The original code looks like: <div class="ui-bar ui-bar-d" <div class="ui-bar ...
0
votes
0answers
64 views

Search and replace with different formatting style

In LibreOffice or OpenOffice Calc spreadsheet, is it possible to search-replace while changing formatting of the replacement text to subscript or superscript at the same time? I have a spreadsheet ...
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
212 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
72 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
60 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
86 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
207 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
694 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: ...