How does the following regex pattern work?
Posted
by zSysop
on Stack Overflow
See other posts from Stack Overflow
or by zSysop
Published on 2010-03-18T13:47:23Z
Indexed on
2010/03/18
13:51 UTC
Read the original article
Hit count: 557
Hi all,
I'm horrible with regex but i'm trying to figure out how an import function works and i came across this regex pattern. Maybe one of you can help me understand how it works.
string pattern = @"^""(?<code>.*)"",""(?<last_name>.*)"",""(?<first_name>.*)"",""(?<address>.*)"",""(?<city>.*)"",""(?<state>.*)"",""(?<zip>.*)""$";
Regex re = new Regex(pattern);
Match ma = re.Match(_sReader.ReadLine().Trim());
Thanks
© Stack Overflow or respective owner