c# - Regex: Match everything after first blank line -


i trying create regex matches after not including first blank line in c#.

example:

having input of:

this header info dont'  : want in file  want below line until end of file  stuff 

would result in:

i want below line until end of file  stuff 

you can use single line , multiline flag in regex this:

^$.* 

working demo

enter image description here

btw, if have multiple white spaces in line, use:

^\s*$(.*) 

and grab content capturing group


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -