Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
81
rated 0 times [  86] [ 5]  / answers: 1 / hits: 38965  / 8 Years ago, tue, may 3, 2016, 12:00:00

Given the following key value pairs, how could I match just the values (including the quotes)?



Explanation: I'm doing a find and replace in my IDE. I have hundreds of key/value pairs where the values need to be changed from strings to objects. So basically replacing the value.



ElevationFilenameIn: Input raster elevation file,
TargetCRS: Target vertical coordinate reference system Type,
featureName: The name of the feature to extract, for example Vegetation or Water,
TargetCRScode: Target vertical coordinate system Code,
TargetCRSfile: The projection (.prj) file in shoebox to be used for this inputfile


My attempt (which is not working, not even close):



[:]s*(\w*)

More From » regex

 Answers
20

You can use the pattern:



[:]s(.*)


and test it following this link: https://regex101.com/r/nE5eV3/1


[#62319] Saturday, April 30, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
annalieset

Total Points: 733
Total Questions: 92
Total Answers: 109

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
;