How can I write a regular expression to parse a file name

I have the following file name structure:

Site.Group.Hostname.Type.txt and would like to build a regular expression to parse the file name in order to group these items as

Site
Group
Hostname
Type

I do not need the txt.

Thanks,
Pete
petedragunAsked:
Who is Participating?
 
dimajCommented:
Why don't you just split it based on '.'. You should get a result of string[]
0
 
petedragunAuthor Commented:
YES! Not sure why I didn't think of that.

Thanks!!!  
0
 
dimajCommented:
Anytime!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.