View Single Post
  #1  
Old 04-16-2009, 03:31 PM
AVR AVR is online now
Registered User
 
Join Date: 04-16-2009
Posts: 4
Find and replace - regular expression

How do I find a line in a file to be replaced, based on the start of the line ?
I want to find the line that starts like [assembly: AssemblyVersion(" and then replace it as [assembly: AssemblyVersion("%val%)]

I have tried:

Find: ?^assembly: AssemblyVersion*
Replace: [[assembly: AssemblyVersion\("%val%"\)]]

Also tried a few more variations. The string does not seem to find a match to replace at all. What am I missing ?


P.S: I had posted the same content and got a notification for a reply. But I dont see my original post and the notification link seemed to be invalid. So, posting again.
Reply With Quote