find-and-replace

visual studio Regex Find/Replace error

I'm working on using Find/Replace to change a bunch of labels to DataBound text. Basically I'm trying to convert something like <asp:Label ID="lbl213" runat="server" /> to <%# Eval("_213")%> Here's my regex <asp:Label ID="lbl{\d*}" runat="server" /> Here's my replace <%# Eval("_\1")%> Here's my Error Unknown argumen...

Find & Replace - using a Regex for this?

Hey folks. Regexs make me cry, so, I came here for help. I'm looking for some tips on Find & Replace in Panic's Coda. I know the F&R is pretty advance but I'm just looking for the best way to do this. I'm trying to rewrite a 'template engine' (very basic) I have going on with a webapp I'm coding in PHP (CodeIgniter). Currently I'm ca...

Find and replace braced tags within a MySQL table

I have about 40000 records in that table that contains plain text and within the plain text, contains that kind of tags which its only characteristic is that they are braced between [ ] [caption id="attachment_2948" align="alignnone" width="480" caption="the caption goes here"] How could I remove those? (replace by nothing) I could ...

Visual Studio Find and Replace Regular Expressions ~ find lines with quoted strings, not containing strings include or trace

Visual Studio Find and Replace Regular Expressions Find lines with quoted strings, not containing strings include or trace i am tryling to find out all lines in c++ project that contains some text as i have to use visual studio, i have to use its Find and Replace http://www.codinghorror.com/blog/2006/07/the-visual-studio-ide-and-regu...

remove content after </html> using dreamweaver find & replace

i need to remove content after using dreamweaver find & replace in multiple files (different content). how can i do that?. will regular expression solve this issue? ...

How to tell Visual Studio 2010 to remember the position of the Find dialog?

When I press Ctrl+F, the Find dialog appears in adventurous positions. When more than a whole screen full of text is selected, it appears completely off the bottom of the screen except for its title bar. Needless to say, this is not helpful. A friend of mine, however, reports that the dialog is always in the same position for him and do...

I want to search and replace multiple values in a table column in one MYsql querry.

Query to Where X update Y and where A update B in a Mysql Table column. How can I Do this in MYsql in one querry on the same column in a specific table. I want to search and replace multiple values in a table column. Conditons in table1 in column1 Where X update Y and Where a update b and Where 1 update 2 and Where 3 update 4 and Whe...

VS2008 - Find and Replace - Searches too many files.

I've used VS2008 a lot and have never had this problem. However, I started a new job and am using a new machine. Ever since I've gotten here the VS Find feature has been acting funny. I first noticed it when I did a replace all for "All Open Files". The project wouldn't build because the values had actually been replaced in other files ...

Read/Write/Find/Replace huge csv file

I have a huge (4,5 GB) csv file.. I need to perform basic cut and paste, replace operations for some columns.. the data is pretty well organized.. the only problem is I cannot play with it with Excel because of the size (2000 rows, 550000 columns). here is some part of the data: ID,Affection,Sex,DRB1_1,DRB1_2,SENum,SEStatus,AntiCCP,RFU...

whats the best way to parse and replace the string with its values ?

I may have string like, """Hello, %(name)s, how are you today, here is amount needed: %(partner_id.account_id.debit_amount)d """ what would be the best solution for such template may i need to combine regular expression and eval, input string may differ like $partner_id.account_id.debit_amount$ - for the moment I've kept as python st...

Help Me Writing a Simple Regular Expression

I have the following text: txtAddressSup.Text I want the Sup to be replaced by Cus while the whole text remains as is. I have many texts that are in this format: xxxxxxxSup.xxxxx ...

Why Find and Replace window is so Wide in Visual Studio 2010?

Good afternoon is there anyone who noticed that Find and Replace window each time is getting wider when coding and compiling? Even when I resize this window in Visual Studio 2010, it gets wider again... :-( Perhaphs is there a way to fix its size? ...

Set a script to automatically detect character encoding in a plain-text-file in Python?

I've set up a script that basically does a large-scale find-and-replace on a plain text document. At the moment it works fine with ASCII, UTF-8, and UTF-16 (and possibly others, but I've only tested these three) encoded documents so long as the encoding is specified inside the script (the example code below specifies UTF-16). Is there...

To Search Only title tag for &raquo; using visual studio 2008

i need to update only title tag of my website having around 3000 web pages. i have to replace with Dash if it is present only in title tag. Please help if there is any way in visual studio 2008 to find a Standard HTML (DOM) Tag. i've done this using dreamweaver Advance text search. but on development machine, only visual studio 2008 is ...

Is there an equivalent of str_replace in C++?

In PHP, there is a str_replace function that basically does a find and replace. Is there an equivalent of this function in C++? ...

Programatically find and replace text in pdf

I'm trying to create a web script that will allow me to alter PDF templates that I have uploaded and re-output them. I have tried Zend already which allows me to write to a PDF but that means leaving the PDF blank in certain space which is to primitive for what I need. PDFFlip was not any better. We need to implement functionality so we...

Replace balanced brackets with balanced braces in LaTeX

How can I write a (La)TeX command that replaces all [ with { and all ] with }, assuming that every [ has a matching ], and that any braces between the [ and ] are balanced? It needs to be able to deal with nested brackets. For example, I want to be able to write a command \mynewcommand so that \mynewcommand{{[[{1}{2}][{3}{4}]]}} is the...

Visual Studio, Find and replace, regex

I am trying to replace all the #include "whatever.h" with #include <whatever.h> using find and replace functionality in Visual Studio 2005. I used the regex \#include \"[a-z\.h]+\" to find the include statement. But I am wondering how frame the replace regex. \#include \<[a-z\.h]+\> did not work and won't; it replaces the statement #inc...

find and replace keywords by hyperlinks in an html fragment, via php dom

I'm trying to use the simple_html_dom php class to create a find and replace function that looks for keywords and replace them by a link to a definition of the keyword, with the keyword as link text. How can i find and replace "Dexia" with <a href="info.php?tag=dexia">Dexia</a> using this class, inside a string such as <div><p>The CEO ...

Replacing DOM text with jQuery

I have a basic DOM "outline" that contains a table with dummy data like this: <table> <tr> <td>name</td> <td>phone</td> </tr> </table> My script uses this as a dummy row to clone and replace the text between the TD tags with text from a database. Without copying the whole script here, here are two different things I've tri...