Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-19-2016, 05:44 AM
raistlin raistlin is online now
Registered User
 
Join Date: 11-14-2008
Posts: 23
Regular expression for Replace in Files

Hi Kinook,


I have a hard time trying to figure out what's wrong with my regex.
I am removing lines in AssemblyInfo.cs that matches this regex:

Code:
(.*)?\[assembly:(.*)?Assembly(FileVersion|Company|Copyright|InformationalVersion)(.*)
This worked on several tools i used to develop the regex but when ported over to VBP, it kept giving me issues like this:

Code:
Error expanding macros or script in property Find: (.*)?\<Error parsing script at position 86>
I tried to work on escaping "[" without avail. Help please? Thank you.

BR
Lee
Reply With Quote
  #2  
Old 08-19-2016, 06:23 AM
raistlin raistlin is online now
Registered User
 
Join Date: 11-14-2008
Posts: 23
Nevermind, figured it out myself. An extra [ to [ without removing \.

Code:
(.*)?\[[assembly:(.*)?Assembly(FileVersion|Company|Copyright|InformationalVersion)(.*)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 07:59 PM.


Copyright © 1999-2023 Kinook Software, Inc.