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

learn more… | top users | synonyms (1)

0
votes
1answer
204 views

Bulk search and replace [duplicate]

Possible Duplicate: Bulk search and replace I have more than 1000 php files. I need to BULK search and replace a text. I want to search and replace both file content and filenames. Is ...
2
votes
2answers
697 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. ...
1
vote
1answer
2k views

Search & replace with wildcards and variable length strings in Notepad++

I am trying to edit a series of strings in Notepad++ using search & replace. What I'd like to do is to search for a particular piece of HTML code, then delete a portion of it. The challenging ...
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 ...
5
votes
1answer
336 views

How can I insert a page break using Find/Replace dialog in Word 2007?

I'm trying to replace "----------" with a new page or a CTRL+enter keyboard shortcut. I pasted "CTRL+ENTER" into the "Replace With:" field in Microsoft Word 2007, hoping that when I clicked "Replace ...
1
vote
1answer
348 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
3answers
168 views

Windows, selective text search and replace within files? [duplicate]

Possible Duplicate: Editor with muti-line search and replace I'm looking for (ideally free) software, which will perform selective search and replace on multiple text files. So I want to ...
2
votes
2answers
1k views

Textmate: regular expression to replace matches preserving case?

How can I use a single search / replace to replace all words town with village preserving the case of the first letter in this sentence: Towns are small cities. I live in a town.
1
vote
1answer
1k views

How can I insert italics in MS Word Find and Replace?

I've written a long document and just read the branding guidelines that says the 'e' at the start of a word needs to be italicized, e.g. eBahgum, the e is italics and Bahgum isn't. I've written this ...
1
vote
1answer
666 views

Remove unwanted hyphens using “Find & Replace”

How do I remove unwanted hyphens from some text I have copied out of a PDF into Word. The criteria is that I would like to remove any hyphen that does not have a space either to its left or right. ...
-1
votes
1answer
433 views

Linux “rpl” command doesn't replace text

I'm using rpl program in linux to replace date( with pdate( in some files. But it says A Total of 0 matches replaced in 1 file searched. while grep output for date( is: ...
3
votes
1answer
2k views

How can I automate modifying key/value pairs in a shell script?

I often want to automate this sort of task in a shell script: if the line: SOMEKEY=SOMEVALUE exists in a file, then change it to SOMEKEY=SOMEOTHERVALUE otherwise, append the line ...
4
votes
6answers
13k 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 ...
0
votes
1answer
83 views

Find in files list of values

I have a list of values, and I need find each value one by one in a folder (and its sub-folders) with files, and then save the results (list of files for each entry). Is there any tools to do this? ...
0
votes
3answers
360 views

Find and replace character with control character

Is it possible to find and replace a character with a control character? Given the text one,two,three I want to Find , and replace with \n (new line). So the result becomes one two three I am ...
1
vote
1answer
5k views

Replace foreign character codes in Notepad++

I'm trying to edit a file with Swedish characters in Notepad++, but the Swedish characters when I view it in Unicode (was originally ANSI) show up as tiny black marks with parts of hex code in them, ...
1
vote
2answers
754 views

Batch find/replace in text or html files

I have a large collection of html files (thousands), and need to change a single character that wasn't displaying properly on some browsers. Is there a quick and efficient way to do this?
4
votes
1answer
487 views

How to do a search-and-replace in Opera for textarea context?

How do I do a search-and-replace in Opera for a textarea's context? I have a web page with html form and I need to input and edit large text in this form. Easy example: Stay on this page, scroll ...
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 ...
0
votes
2answers
192 views

Find and replace all blanks with underscore characters in Windows 7 dialogs, or PDF form dialog

Within Windows 7, I use utilities such as PDFCreator; I would like to locate a keyboard shortcut utility to find all instances of a character (e.g a blank) in a single line dialog form and replace all ...
1
vote
1answer
1k views

Find/Replace Paragraph End (^13) in Microsoft Word 2007 Merges Paragraphs

I need to replace a target at the beginning of lines with something else. Without wildcards, I can say to replace "^pTarget" with "^pReplacement". With wildcards enabled, I use replace "^13Target" ...
11
votes
2answers
13k views

How to find and replace the character “*” in excel

I am trying to find and replace the * (star, or shift+8) character in a bunch of formulas in Excel 2007. * of course matches the ENTIRE contents of the cell, which is not what I want. How do I ...
2
votes
2answers
268 views

Remove colons (:) from illustration index in Microsoft Word 2010?

How can I remove all the : from illustration index in Word 2010? FIG. 2.4: Representação em RDF/XML da FIG. 2.3 27 FIG. 2.5: Ilustração da Utilização do RDF com o RDFS 28 But I need this: FIG. ...
3
votes
1answer
474 views

Linux: Find all occurrences of “string1” in files under a directory and replace them with “string2”

In linux, what's a good way to find all occurrences of "string1" in files under a directory and replace them with "string2"?
0
votes
2answers
310 views

Using sed to replace a *large* number of variables in a file

I have a large number of log files, on a linux box, I need to cleanse sensitive data from before sending to a third party. I have used the below script on previous occasions to perform this task, and ...
7
votes
1answer
15k views

Find and replace in Notepad++ using wildcards/regex

I have a SQL dump with expressions such as youtubehd:2nj6bykw. The 2nj6bykw can also be a different random string. It is always 8 characters long. I want to replace youtubehd:2nj6bykw with just ...
2
votes
1answer
517 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 ...
9
votes
3answers
7k 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 ...
4
votes
4answers
2k 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
4answers
10k views

How do I insert line breaks into a text file - not programming, not fixed width - via find & replace

This is a different from someone else's similarly-titled question. Neither Excel nor OpenOffice allow users to specify line delimiters, so I'm trying to replace semi-colons with line breaks. How do I ...
1
vote
2answers
6k views

MS Access 2007, find and replace character with new line

In Access 2007 how do I replace a character (say "~") with a new line. I have tried using the Replace box with ALT+010 but it is not accepted as new line. Any suggetsions?
1
vote
1answer
3k views

Excel - replace multiple strings in a single cell, based upon a lookup table

I would like to do a replace on multiple strings within a cell, based upon a lookup table. My lookup table has two columns: AUSTRIA | AT BRAZIL | BR COLOMBIA| CO My data table has two columns: ...
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 ...
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 ...
0
votes
1answer
89 views

How to do Linux-like file modifications on Windows command line?

I need to do some more or less easy replacements in certain files on Windows machines. This is part of an automated software build process, so to be able to reproduce it on all build mashines I ...
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 ...
3
votes
2answers
4k views

Notepad++ find and replace expression help

I want to find all content between two characters, say A and B: Asd;lfksjd;fsdfjs;ldfkB which would be sd;lfksjd;fsdfjs;ldfk and replace them. How would I write this expression?
14
votes
1answer
5k views

vim delete all lines that do NOT contain a certain word

In vim I can delete all lines that contain the word "price" with this :g /price/d How can I delete all lines that do NOT contain the word "price"?
1
vote
2answers
331 views

How can I do a batch find replace?

I'm writing a piece of software which requires the creation of a number of nearly identical blocks of code that only vary in a few locations which need to be replaced by a unique value for each ...
3
votes
1answer
392 views

Can I delete any line with a given search string?

In Vim, I'd like to search for lines with a given string, then delete them. Specifically, I'd like to find lines with the LaTeX commands \begin{frame} and \end{frame}, and delete them. =
1
vote
2answers
89 views

Trying to cleanse log files on a Linux machine, currently using sed

I have a large amount of log files that I need to remove sensitive data from. The sensitive data is provided to me in a text file and is prone to change. I had hoped to do the equivalent of this: ...
0
votes
1answer
307 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
2answers
501 views

Change YYYY-MM-DD to YYYYMMDD everywhere in file

I can't just delete all of the hyphens, because elsewhere they are used as minus signs. I can find these dates with [0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\} but I can't figure out how to keep those three ...
0
votes
2answers
7k views

Excel macro: Replace enitre cell contents; replace 1 but not 10, 11, 21 etc

I need to replace a large amount of numbers with words in an Excel spreadsheet. Eg: 1 = hello 12 = goodbye 4 = cat etc. I can do it with the standard search and replace, but i have a large list to ...
1
vote
4answers
2k views

using sed to replace two patterns within a larger pattern

Using sed how could I replace two patterns within a larger pattern on a single line? Given a single line of text I want to find a pattern (Let's call this the outer pattern) and then within that ...
1
vote
3answers
274 views

Disable find and replace feature in OpenOffice.org

Can you disable the find and replace feature in OpenOffice.org Writer? We are a school, and the students are cheating by using this feature to avoid reading the entire document. We're looking for ...
3
votes
2answers
2k views

Using search and replace to remove line breaks in Open Office

I've imported a document into Open Office and it has a number of hard returns in wrong places. In MS Word, I could use the search and replace to simply get rid of them all easily, but Open Office's ...
1
vote
1answer
378 views

Add constant value to numeric XML attribute

Background Add a constant value to numbers matched with a regular expression, using vim (gvim). Problem The following regular expression will match width="32": /width="\([0-9]\{2\}\)" Question ...
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 ...