I want to use regex to pull out a string including the beginning and end values.
For example:
Regex regex = new Regex("A Bylaw(.*?)" + @"\.");
var v = regex.Match("blah blah blah A Bylaw to provide for the government and management of the Water Works System in the City and the collection of Rents, Rates, and charges for water. blah blah blah");
This returns:
to provide for the government and management of the Water Works System in the City and the collection of Rents, Rates, and charges for water
I'm looking for:
A Bylaw to provide for the government and management of the Water Works System in the City and the collection of Rents, Rates, and charges for water.