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

learn more… | top users | synonyms (1)

0
votes
1answer
20 views

Swapping multiple cases of two varying blocks of text, with MS Word find-and-replace

I have a few very long and large documents in MS Word, containing iMessaging history. I want to reorder the current format a bit, so it is more intuitive to read. Currently a sample of one document is:...
0
votes
2answers
23 views

Find-replace within hierarchy of XML files

I have around 350 XML files spread throughout the /abc directory. I would like to find all instances where the value of the alt attribute is exactly 'blah blah': <image alt="blah blah" src="../...
0
votes
2answers
18 views

Adding specific line after findinga pariticular line

I have huge codebase containing 400-500 files. In most of the files we have this kind of lines, <cfcatch type="any"> / <cfcatch type="database"> / <cfcatch> etc. So the common ...
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 ...
0
votes
0answers
20 views

MS Word Find Style spanning 2 lines that contains text and replace part

I will be creating a macro for this, but first I just want to get the find/replace to function. I have occassions in my Word document where there are 2 lines of Heading 3s in a row. The first line ...
0
votes
0answers
43 views

Replace multiple words in multiple files

I am using Windows 7. I need to replace multiple occurences of multiple words in multiple text files. For example, suppose there are 20 files. I have a list of words to find, and the words to replace ...
1
vote
0answers
14 views

How to add a constant text to all headings in Office Word

In an effort to manually change my Office Word document to Latex, I would like to change all text with heading style with a text containing the \section{heading}, in which heading is the actual text ...
0
votes
1answer
18 views

regexp search and replace for bash variables

A number of my bash scripts need tidying up before sending them round. One of the thing I would like to do is to use curly braces for all variable names. So everywhere it says $PWD should be changed ...
0
votes
1answer
18 views

Replacing a Incremental number text with constant text

I have a XML file I have replace some text like: <instance instanceCode="ZTEST999523" objectCode="ZTEST999523"> <instance instanceCode="ZTEST999523" objectCode="ZTEST999524"> <instance ...
0
votes
0answers
19 views

Excel 2013 find and replace

Excel 2013 find-replace command doesn't allow to me to replace all /, it does find them, but it can't replace them with eg ; Whenever I try to do that, I get a message, that suggests me to add a ' ...
0
votes
5answers
13k views

Replace given char with ASCII nul in Notepad++

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

How to Replace Every Space in a Notepad++ Doc With a Null Character?

I copy and pasted the hex (I think it's hex, but I have no clue) from one document to another and all the null characters turned into spaces. How would I change them all back to null characters, ...
2
votes
7answers
9k 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
3answers
41 views

Notepad++ regex not working

I am trying to use Notepad++ and regular expressions to remove all XML from Windows' events. My regular expression is as follows: Event Xml:(.|\n)+?Event>\n Example Windows events are as ...
3
votes
1answer
40 views

How to replace Unicode Character in Notepad++

I have got a .xlf files that looks like the picture below: I wonder how do I search and replace unicode character "xE5" to "æ" I thought I could search for:^0145 =xE5 and replace "æ", that did not ...
1
vote
1answer
32 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 --...
2
votes
3answers
63 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 <http:...
0
votes
0answers
15 views

How to find and replace the character “$” in Open Office Calc

How to find the character “$” in OpenOffice Calc and replace cell's value times 2 Practically looking for all the prices in a column and i want to double that. EX:$25 result $50 Can i use the find ...
3
votes
2answers
32 views

Notepad++ RE Search and Replace

Can someone explain why the following record: 1234 4567 blahblahblah becomes blahblahblah When Search/Replace applied (NP++ v6.9) with: Replace:^\d{4}\h with:(nothing) (Reg Exp) radio on Any ...
0
votes
1answer
30 views

How to find wild card value and append to it

I have part of the hundreds of lines similar to : [vc_single_image image="55"] How can I change the lines so they all get appended img_size="full", resulting in [vc_single_image image="55" ...
0
votes
1answer
19 views

Notepad++ Replace hint for text file

i'm having some trouble about replacing option string. I need to replace <option value="91">Afghanistan</option> need to become <option value="Afghanistan">Afghanistan</option&...
0
votes
0answers
28 views

How to do multiple find an replaces in MS Word — possibly storing the data in a spreadsheet

I have an MS word file that I want to do multiple find and replaces on. The are a spreadsheet with two columns, e,g, cat dog rat mouse horse pony I would like to replace ...
0
votes
0answers
20 views

Dreamweaver REGEX trying to find and replace (or remove)

So far am using this: "http([^>]+) as my REGEX. The page has multiple urls mixed with text and DOM Elements. Something like: <li><a href="http://www.uen.org/toolbox">UEN's Teacher ...
1
vote
0answers
110 views

Word - find/replace highlighted text with shaded text AND preserve all other formatting?

I create new documents from source material that others send me, and use Word's built-in gray highlighting to indicate text in the source file that's been dealt with in the new document (equivalent to ...
0
votes
1answer
22 views

Replace “bla”: “*” to “bla”: * with wildcards Word 2016

I've a lot of data in my Word file in I'll to replace some content. The content I'll replace is show in example below: // original data I'll replace { "nummer": "1", "jaar": "2010", "...
0
votes
1answer
12 views

Add four spaces at the beginning of every selected new line in batch

In order to add lines of code to a post properly, I'd like to add four spaces (U+0020) at the beginning of every selected new line, the previous line ending in a paragraph break, so that I can just ...
1
vote
1answer
65 views

exclude specific strings of words using wildcards

I cannot seem to come up with the appropriate wildcard (I suppose it must be [!]) which would exclude from the expression argument[oales]{1,4} the following three words argumentos argumenta ...
0
votes
2answers
88 views

Notepad++ - replace every first space of a line

I know there are a lot of these types of questions but I can not find a way to alter one of the existing solutions for my problem. My text file looks like this: word<tab>word<space>...
3
votes
1answer
150 views

replace string with proper tab character in Notepad++

I have a string like this: "001234","123","","Automated Letters""\t""Arrears Advice","\\PATH\FILE.doc" instead of Automated Letters""\t""Arrears Advice I need Automated Letters Arrears Advice ...
0
votes
1answer
29 views

How to add quotes to a datestring notepad++ regex

I have a huge text files with date strings in the first column. For further processing, I need to have the date strings in double quotation marks: 2015-11-11 00:00:00.00,59,... Should end up like ...
0
votes
0answers
25 views

Modify properties of tables in batch

I am working on a MS word document which contains several tables, and I want to modify the properties of all of them at once, such as alignment, text wrapping, borders and shading etc., and either for ...
0
votes
0answers
161 views

Backrefence syntax in powershell's sed

How do I back reference a capture group in powershell's sed? I can't seem to find the syntax for it. IE I expect echo "hello" | sed "s|(h)ello|world\1|" to output worldh, but instead I get the ...
0
votes
0answers
22 views

How to work around the impossibility to find zero or more occurrencies in Microsoft Word?

How would you proceed about the following find and replace in Microsoft Word? Find what? D.Lgs. (that can be any combination of lower or upper case, plus the dots may or may not be there, i.e. I ...
1
vote
2answers
8k 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 ...
1
vote
0answers
40 views

How to replace HTML code using MS Word 2010?

I’m trying to delete the CSS from my code using Word 2010. I’ve searched online on how to find and replace text, and tried some but none worked. Below is the code i don't want. <p>&nbsp;<...
1
vote
1answer
228 views

Mass Find and Replace - Microsoft Word 2013

I am trying to create a macro in order to do a mass find and replace across multiple word documents. I have found this one on the net and altered it however I keep getting a run time error (5174) ...
2
votes
2answers
803 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
2answers
1k views

How to replace only text in a selected column

When I select some text in a column, replace/in selection will become grey. How can I replace text only within a column of selected text in Notepad++?
4
votes
5answers
3k views

What's the best way to find and replace text in multiple files over FTP?

How can you search and replace text in multiple files on an FTP server? Basically I need to change the Google Analytics information on a bunch of plain old HTML pages and I'm wondering if there is a ...
0
votes
1answer
15 views

Is it possible to search and replace formatting in a LibreOffice Writer document with named styles?

Say I have a document in Writer that somebody who is ignorant of styles has created by manually setting a certain font to various areas. Now I want to improve the document by upgrading the manual ...
10
votes
2answers
2k views

How do I delete lines without “.” in Notepad++? [duplicate]

In Notepad++, I have many lines in the format: abc.xyz where "abc" might have space or - or numbers. How do I delete lines without "."? So if a line does not have any ".", I want it removed ...
1
vote
1answer
24 views

Overlapping replacements with sed?

Suppose I have an input string: ,,a,b,c,,,,d,e,f,,,g Is there a simple sed command that can insert something between every pair of consecutive commas? That is, what can I use to convert the input ...
38
votes
7answers
43k 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 ...
4
votes
1answer
25 views

How can I Find and replace all text that has a style in MS Word 2013 without changing style on line below

I have a MS Word 2013 document with several headings that are styled as "Heading 4". My goal is to replace all text that is styled as "Heading 4" to ###### and style "Heading 5". I use the ...
1
vote
3answers
89 views

Notepad++ Regex to replace the 4th character of each line in a text file.

I have a large text file and want to replace the 4th character of each line. Cloud you please suggest a Regex to do that in Notepad++?
0
votes
2answers
54 views

Adding or Replacing text within hyperlinks

I am very confused after trying to explore how this can be done. Its very simple but yet cant find a solution. What I wish to know is the following. I have three separate documents, all of which are ...
1
vote
1answer
165 views

sed without regex

I am using GNU SED for find and replace functionality on large files(upto 2GB). Find and replace characters can contain any characters, hence I want find and replace parameters to be treated as plain ...
0
votes
1answer
2k 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> &...
6
votes
7answers
24k 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 ...