RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find INI Key/Value match
Expression
^(?:(?<key>.+?)\s*?=\s*?(?<value>\S.+?)\s*)$
Description
Matches key/value pairs in standard INI format Match Groups: key - Key name (can't contain spaces) value - The entry's value (leading/trailing spaces not included)
Matches
KeyName1 = This is key 1's value|ThisKey=C:\Some Path\Program.exe|MatchingKeyName = Corresponding matching value
Non-Matches
Unmatched Key = Unmatched entry value|BadKey Name=Unmatched value 2|Key With Spaces = Results in non-match
Author Rating: Not yet rated. RB
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials