Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-19-2016, 06: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, 07: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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 04:43 PM.


Copyright 1999-2019 Kinook Software, Inc.