find-replace

VSCode Regex Find/Replace In Files: can't get a numbered capturing group followed by numbers to work out

♀尐吖头ヾ 提交于 2021-01-27 18:57:44
问题 I have a need to replace this: fixed variable 123 with this: fixed variable 234 In VSCode this matches fine: fixed(.*)123 I can't find any way to make it put the capture in the output if a number follows: fixed$1234 fixed${1}234 But the find replace window just looks like this: I read that VSCode uses rust flavoured rexes.. Here indicates ${1}234 should work, but VSCode just puts it in the output.. Tried named capture in a style according to here fixed(?P<n>.*)123 //"invalid regular

Find & Replace string using for /f with if statement and variables

不羁岁月 提交于 2019-12-22 06:48:50
问题 I have written a batch file which I want to overwrite key strings with strings from another .txt file. currently it copies the new File.txt file perfectly but does not replace the strings with the strings from OldFile.txt file. example of strings in File.txt file: ... # Password Pword= # AccountName Account= # TownName Town= # Postcode Postcode= # LocationChangedDate LocationChanged= example of strings in OldFile.txt file I want to replace from: ... # Password Pword=ABC # AccountName Account

Find all text formatted with given color

橙三吉。 提交于 2019-12-13 11:13:27
问题 I am looking for a way to create a new document containing all the text with a specific format from my document. See below for what I wrote so far, but I'm stuck here: how do I stop my loop when end of document is reached? or how do I add intelligence to my code to avoid a static loop, and rather do a "scan all my document"? Option Explicit Sub Macro1() Dim objWord As Application Dim objDoc As Document Dim objSelection As Selection Dim mArray() As String Dim i As Long Dim doc As Word.Document

SSIS - Changing references to a Variable/Parameter through all the project

為{幸葍}努か 提交于 2019-12-11 02:39:41
问题 I've created an SSIS project, thinking it will be deployed in Project Deployment mode. A Lot of my packages have 2 Parameters (called P_OdsTbl and P_SrcEtl ), and whenever I used Execute package task I bound the Child Parameters to the Parent Parameters. I've since discovered that the project would be deployed in Package Deployment mode, which means I need to change the Parameters to Variables ( V_OdsTbl and V_SrcEtl ) and set their values with Variable Configurations. I have many references