Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Regular expression for Replace in Files (https://www.kinook.com/Forum/showthread.php?t=5440)

raistlin 08-19-2016 05:44 AM

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: (.*)?\
I tried to work on escaping "[" without avail. Help please? Thank you.

BR
Lee

raistlin 08-19-2016 06:23 AM

Nevermind, figured it out myself. An extra [ to [ without removing \.

Code:

(.*)?\[[assembly:(.*)?Assembly(FileVersion|Company|Copyright|InformationalVersion)(.*)


All times are GMT -5. The time now is 10:59 AM.


Copyright © 1999-2023 Kinook Software, Inc.