Try this regular expression:
\w*Id\b
\w*
allows word characters in front of Id
and the \b
ensures that Id
is at the end of the word (\b
is word boundary assertion).
More Related Contents:
- Extract title from name in c# [closed]
- How to cut up a string from an input file with Regex or String Split, C#?
- How to Parse using Regex in C# [closed]
- C# regex replace of numbers and units
- How do I replace the *first instance* of a string in .NET?
- How do I access named capturing groups in a .NET Regex?
- What are regular expression Balancing Groups?
- Escape Special Character in Regex
- Replace first occurrence of pattern in a string [duplicate]
- RegEx Match multiple times in string
- Regex to strip line comments from C#
- Detecting *all* emojis
- Returning only part of match from Regular Expression
- split a comma-separated string with both quoted and unquoted strings [duplicate]
- C#, regular expressions : how to parse comma-separated values, where some values might be quoted strings themselves containing commas
- Matching strings with wildcard
- C# Regex for Guid
- C# Regex Split – everything inside square brackets
- return only Digits 0-9 from a String
- Count regex replaces (C#)
- Regex for IP address
- Regex replace multiple groups
- Finding quoted strings with escaped quotes in C# using a regular expression
- Convert JavaScript Regex to C#
- C# System.RegEx matches LF when it should not
- Regex for matching a character, but not when it’s enclosed in square bracket
- using static Regex.IsMatch vs creating an instance of Regex
- Regular expression to validate valid time
- regex to split line (csv file)
- Can I test if a regex is valid in C# without throwing exception