How can I modify this to work with any regex with capture groups?

2022.01.19 14:27 TheAbortedPancake How can I modify this to work with any regex with capture groups?

Because I used named groups in the following code it only works with a specific regex. How can I modify it to take any regex and output all capture groups as csv? Please explain. Thanks for any help.

Regex rg = new Regex(@"", RegexOptions.Compiled | RegexOptions.IgnoreCase); try { rg = new Regex(@arguments.Regex, RegexOptions.Compiled | RegexOptions.IgnoreCase); } catch (Exception ex) { Console.WriteLine(ex.Message); } StringBuilder sb = new StringBuilder(); foreach (string line in System.IO.File.ReadLines(@arguments.FilePath)) //audit.log { var loginMatch = rg.Match(line); if(!loginMatch.Groups["username"].Value.Equals("")) { sb.Append($"{loginMatch.Groups["username"].Value},{loginMatch.Groups["time"].Value},"); } } Console.Out.WriteLine(sb.ToString()); 
submitted by TheAbortedPancake to AskProgramming [link] [comments]


2022.01.19 14:27 TreeFolksEducation Freeze Protection for Woody Perennials

I'm sure you've seen that a freeze is on its way. It's not the first of the year, so hopefully you're already all squared away. But what exactly is the best thing for trees, shrubs, and the like when the temps dip down to these lows?
The best thing for any plant is a deep watering 12-24 hours before the freeze. This allows the plant to uptake water which has a low thermal conductivity and a fair amount of mass, so it keeps the plant from getting as cold as the surrounding air.
For in zone trees like most natives, that's all you really need to do! It's not until you start talking about citrus and other tropical and subtropical plants that you really need to start talking about protection.
Even "cold tolerant" citrus are not cold tolerant in a pot or before they are fully established. All tropical and subtropical plants for which you would like the above ground tissue to survive should be covered! You can use sheets, blankets, plastic, or whatever you want, but thicker keeps in more heat. And make sure those covers are weighted or tied down so the winds won't blow them away!
When covering a tree, be sure that the cover extends ALL THE WAY to the ground. Do not "lollipop" your tree (cover only the canopy and tie the sheet with twine around the trunk making it look like a lollipop). You want your trees to have a tent around them down to the ground that will capture heat from the ground and keep it around the tree!
If you have any specific questions on how to best protect your trees, please email me at [education@treefolks.org](mailto:education@treefolks.org) for more information!
submitted by TreeFolksEducation to AustinGardening [link] [comments]


2022.01.19 14:27 Jozymajika Guys this person is arguing with me and imma just make a poll to settle this. What skin would you rather.

View Poll
submitted by Jozymajika to YBAOfficial [link] [comments]


2022.01.19 14:27 ConnorPalmer452011 3 pain seconds (+ mayrio death stare)

3 pain seconds (+ mayrio death stare) submitted by ConnorPalmer452011 to dadthespeedrunner [link] [comments]


2022.01.19 14:27 popsiclebaby (FOR HIRE) Taking in commissions for only $15 via PayPal I need to pay some debts, never sold any art before 😅

submitted by popsiclebaby to comissions [link] [comments]


2022.01.19 14:27 ZoolShop Procter & Gamble Says Prices Will Keep Going Up

Procter & Gamble Says Prices Will Keep Going Up submitted by ZoolShop to CoinTuta [link] [comments]


2022.01.19 14:27 Project_Soar_NFT Project Soar is taking buying land in metaverse for its members, donating proceeds to first responder and military charities and have over $1.5MM in giveaways, including Lambos, Ducatis, Super Bowl tix and so much more!!! Check them out!

Project Soar is taking buying land in metaverse for its members, donating proceeds to first responder and military charities and have over $1.5MM in giveaways, including Lambos, Ducatis, Super Bowl tix and so much more!!! Check them out! submitted by Project_Soar_NFT to OpenSeaNFT [link] [comments]


2022.01.19 14:27 Bearded_Animals Received a email from Spotify about the Presale for the Roadshow, I want to go to the Wichita show, but it won't allow me to purchase tickets. All the other events seem to work just fine with the code I received.

submitted by Bearded_Animals to Slipknot [link] [comments]


2022.01.19 14:27 little-pinkie MY STORE PUT THE LABELS OUT! And cleared the shelves for vday. I was too embarrassed to ask what time or when they’ll put them on the shelf.. idk when I should go back? In a couple hours? They stock the store on Wednesdays. I want to get an extra to share with someone who misses out.

MY STORE PUT THE LABELS OUT! And cleared the shelves for vday. I was too embarrassed to ask what time or when they’ll put them on the shelf.. idk when I should go back? In a couple hours? They stock the store on Wednesdays. I want to get an extra to share with someone who misses out. submitted by little-pinkie to squishmallow [link] [comments]


2022.01.19 14:27 Crafty_Bad_1919 bigbootynetty

bigbootynetty submitted by Crafty_Bad_1919 to SeductiveGirlsLounge [link] [comments]


2022.01.19 14:27 DarthBaller FCPS is Virtual tomorrow with a 2 hour delay AND a 2 hour early release.

submitted by DarthBaller to nova [link] [comments]


2022.01.19 14:27 According_Dog6735 2022 Senate prediction based on polling.

2022 Senate prediction based on polling. submitted by According_Dog6735 to YAPms [link] [comments]


2022.01.19 14:27 -The-Bat- [IIL]Epic sounding rock songs (Innuendo, Kashmir, Stargazer, Stairway to Heaven) [WEWIL?]

submitted by -The-Bat- to ifyoulikeblank [link] [comments]


2022.01.19 14:27 lewlew1893 Controversial Opinion

I think the way that porn blurs the lines of consent is fucking unhealthy. If a woman has a rape fantasy and she wants to act that out that is 100% fine as long as both adults are consenting. But when you have youngsters whose only sexual knowledge and etiquette is gained from porn it's quite disturbing. You all know what I am talking about. Those videos where she is either acting like she doesn't actually want to do it OR WHERE SHE GENUINELY LOOKS LIKE SHE DOESN'T WANT TO DO IT. That's fucked in my opinion. Gives young people terrible expectations of sex. I don't think that porn is going to turn everyone into rapists or anything but I don't think it's going to help anyone. If you want to portray it in that way make it clear there was a talk beforehand to show that whatever happens is consensual.
submitted by lewlew1893 to PornAddiction [link] [comments]


2022.01.19 14:27 MrMovieElf Am I allowed to post a YouTube video?

Im looking to get some feedback on a video, but I also realize I'm very new
I don't want to post to soon and get in trouble
submitted by MrMovieElf to harrypotter [link] [comments]


2022.01.19 14:27 yogthos France: Militant general strike continues to spread

France: Militant general strike continues to spread submitted by yogthos to socialism [link] [comments]


2022.01.19 14:27 obscure_inside_joke Sad Lawn

Upsetting lawn
Zone 10a (socal). This weed has completely started to take over my lawn. It has small little spikes on the stem which hurt when you walk barefoot on them. They are irritating my dog’s feet pretty bad. Didn’t see this last year, seems to have had happened overnight and this thing is aggressive. In the pics all the tufts of green popping up is this weed. What do I do?? It’s taken up my entire yard. Do I pull all the grass up or call on reinforcements?
submitted by obscure_inside_joke to lawncare [link] [comments]


2022.01.19 14:27 Msutts91 WHY do new crypto listings on Coinbase Pro always dump when they are released onto the exchange? Common trend I'm noticing.

Why do new listings on Coinbase Pro always dump once released. This is a constant on going trend I'm noticing on there exchange? example STX went for a ride on another exchange and now the chart is looking terrible for the release of STX on Coinbase Pro exchange?
submitted by Msutts91 to hockeyplayers [link] [comments]


2022.01.19 14:27 Puffin_fan Example # 859

Example # 859 submitted by Puffin_fan to RedditBeHonest [link] [comments]


2022.01.19 14:27 Ok-Foundation-7957 QUESTION

Is Teamming Fair if you team on a server and everyone in that server is fine with you teaming?
submitted by Ok-Foundation-7957 to MurderMystery2 [link] [comments]


2022.01.19 14:27 M0bec There's actually nothing wrong with the display itself

There's actually nothing wrong with the display itself submitted by M0bec to tooSleeztooBerlin [link] [comments]


2022.01.19 14:27 YouWonderfulFarmYou Higher or lower DPI for better fusion when laser printing?

Hi everyone, I've been trying to figure out if it's better to print on higher or lower DPI. My problem is that I'm laser printing on a semi gloss material, and after a couple of months, the printout can be scratched out.
I'm thinking that it could be an issue with the fusion temperature of the toner. But I've set it at heavy cardstock, which I think is the highest fusion temperature. I read somewhere that it's possible that the DPI affects the fusing. I'm just not sure if it's the higher DPI or lower DPI that's better. Would greatly appreciate any thoughts on this.
submitted by YouWonderfulFarmYou to printers [link] [comments]


2022.01.19 14:27 hitlasseksistepbro Sternenzug über München???

Hat eine/r von euch diesen Sternenzug oder Flugzeuge in einer Linie über München gesehen? Heute gegen 17.55. Es sah aus wie ein Zug aus Sternen oder Flugzeugen die in einer geraden Linie fliegen. Weiß vielleicht jemand was das genau war?
submitted by hitlasseksistepbro to Munich [link] [comments]


2022.01.19 14:27 gloompicnic Very normal twitter behavior

Very normal twitter behavior submitted by gloompicnic to h3h3productions [link] [comments]


2022.01.19 14:27 Littlefish11_86 [Image source: Yuru Yuri]

[Image source: Yuru Yuri] submitted by Littlefish11_86 to NuxTakuSubmissions [link] [comments]


http://techbotteam.ru