find-and-replace

Find and replace whole words in vim

To find and replace all instances of a word in vim, I use %s/word/newword/g How do I change this so that it only finds instances of "word" that are whole words? ...

Find and replace in xml file using sed

Hello, I need to find and replace the value of the specific xml element. The conditions are as follows: the value of element enabled must be changed from 0 to 1; enabled must be the child of an somenode element My test xml looks like this: <somenode name="node1"> <some></some> <enabled>0</enabled> <some></some> </somenod...

problem with Checkboxes in Jtable column

Hi all, I have a Jtable with 6 columns where i have Check boxes in the 6th Column.I am outing the text in to JTable by using the setValueAt() and getValueAt() methods.For the same Jtable I have Find,Replace and Replace All Controls to find,replace and replace all the text i the jtable.The Particular cel will be focussed for Find text.Pa...

using Regex to find and replace doubles (C#)

I want to replace all double tokens in string with the double value appended with "c" letter. Is there an easy way to do it? I thought that the Regular Expression is the way to go for example, I wanna change the following treand60(12.3)/1010 + 1 >1010 with treand60(12.3c)/1010c + 1c >123c any suggestions ...

Replace characters in Asterisk Dialplan.

I want to change a couple off characters * # for A and P to have the monitor filename with characters more friendly. The only solution I could find was to do it my self within the dialplan but it generates a lot of verbosity output and is not as efficient(fast) as I would like to. I'll post it here just in case someone wants to use it. B...

Mysql Update Field Contents

I am currently trying to edit my db named boh. The current table "files" has a field called "path". Inside the path field is an actualpath to files listed in a folder, syntax "F:\xxx\xxx\xxx\filename.xxx". How do I update the field information to replace the "F:\xxx\xxx\xxx" so that just the file name exists? ...

Looking for a RegEx Find and Replace Visual Studio addons

Hi I am looking for a Visual Studio Addon which does standard Regular Expression Find and Replace, not the Microsoft Visual Studio version of Regular Expression As you do not get the complete syntax Please help? Thanks ...

Visual Studio Find and Replace Regular Expressions help

Hi, I'd like to replace some assignment statements like: int someNum = txtSomeNum.Text; int anotherNum = txtAnotherNum.Text; with int someNum = Int32.Parse(txtSomeNum.Text); int anotherNum = Int32.Parse(txtAnotherNum.Text); Is there a good way to do this with Visual Studio's Find and Replace, using Regular Expressions? I'm not s...

Excel find and replace a character to create a new cell

For example if have " size:1, color:red CH 4" in one cell i want " size:1. color:red" new cell "4" basically find "CH" and replace it with a new cell and everything in front of it. anyone know how? ...

Swap attributes in tags using Visual Studio 2008 RegEx

How to swap attributes ID and runat in all tags in my Visual Studio 2008 solution? Was <asp:Label ID="Label1" runat="server" /> became <asp:Label runat="server" ID="Label1" /> ...

Notepad++ File Filters

Hi All, I was wondering if it was possible to list an exclusion within the file filters in the "find in files" functionality of Notepad++. For example the following will replace Dog with Cat in all files. Find what: Dog Replace with: Cat Filters: *.* What I would like to do is replace Dog with Cat in all files except those in .sh f...

Are there any XML Editors with FTP and file-tree browsing combined?

Are there any (free preferably) XML Editors combined with FTP and file-tree browsing Project wide find+Replace I.e A bit like what Dreamweaver MX is but with fancier XML capabilities /XSLT /XSD Perhaps even DW does this...im still on an older version. I'd like to keep a smooth flow between find-edit-view-upload any ideas? B...

Multiline Find & Replace in Visual Studio

Can it be done? We're using either VS2005 or VS2008. I don't mean regular expressions - which have their place - but plain old text find & replace. I know we can do it (at a pinch) with regular expressions using the \n tag but prefer not to get tangled up in regex escapes characters, plus there's a readability issue. If it can't be don...

find and replace from command line unix

Hi, I have a multi line text file where each line has the format ..... Game #29832: ...... I want to append the character '1' to each number on each line (which is different on every line), does anyone know of a way to do this from the command line? Thanks ...

jquery find and replace text, without element id

I'm playing around with finding and replacing text. The only problem I'm having is finding a text string, that is not attached to an element with an ID. Otherwise, it would be easy. I'm trying something like this: $("*").each(function () { $(this).html(this.html().replace('Original Text','New Text')); }); Not working too well. ...

jQuery - Find and replace text, after body was loaded

I received some amazing help from others, concerning finding and replacing text with jquery. The code below will find the word: "Subject:" and replace it with "Name:" $("*").each(function () { if ($(this).children().length == 0) { $(this).text($(this).text().replace('Subject:','Name:')); } }); And this works wonderful...

How to encompass the first letter in every word with HTML tags?

How to encompass the first letter in every word with HTML tags? For example: $string = replace_first_word("some simple text",'<big>{L}</big>'); echo $string; //returns: <big>s</big>ome <big>s</big>imple <big>t</big>ext edit: ohhh, forgot to mention one important point, it Needs to work with UTF-8 Unicode... because I'm planning to su...

Visual Studio: find and replace ALL CAPS with Title Case

Consider the need to replace window titles that are currently in all caps i.e. "ADD PRESCRIPTION", "ADD PATIENT", to the form "Add Prescription" and "Add Patient". I am using the Visual Studio search dialog to find all of the strings that are all caps using the regex "([A-Z]|[ ])*". That works great. Is it possible to find and replac...

Great tools to find and replace in files?

I'm switching from a Windows PHP-specific editor to VIM, on the philosophy of "use one editor for everything and learn it really well." However, one feature I liked in my PHP editor was its "find and replace" capability. I could approach things two ways: Just find. Search all files in a project for a string, see all the occurrences li...

Replacing text after node

I am trying to remove the "Hide this data" from this XML which is proceeded with the qualifier type="noView" <element version="Local"> <qualifier name="Public" type="View" /> Good to go </element> <element version="Local"> <qualifier name="Public" type="noView" /> Hide this data </element> I am using this XSL <?xml v...