Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Searching for a bitmap on my screen Pin
Eddy Vluggen3-Feb-20 10:25
professionalEddy Vluggen3-Feb-20 10:25 
AnswerRe: Searching for a bitmap on my screen Pin
Gerry Schmitz3-Feb-20 4:11
mveGerry Schmitz3-Feb-20 4:11 
GeneralRe: Searching for a bitmap on my screen Pin
Atlaskor3-Feb-20 5:21
Atlaskor3-Feb-20 5:21 
QuestionHow to read specific field value when using LINQ to object to fetch data Pin
Mou_kol31-Jan-20 10:05
Mou_kol31-Jan-20 10:05 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
ZurdoDev31-Jan-20 10:47
professionalZurdoDev31-Jan-20 10:47 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
Gerry Schmitz31-Jan-20 10:49
mveGerry Schmitz31-Jan-20 10:49 
AnswerRe: How to read specific field value when using LINQ to object to fetch data Pin
Eddy Vluggen31-Jan-20 11:05
professionalEddy Vluggen31-Jan-20 11:05 
QuestionHow to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
Member 1472865028-Jan-20 19:44
Member 1472865028-Jan-20 19:44 
AnswerRe: How to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
OriginalGriff28-Jan-20 20:12
mveOriginalGriff28-Jan-20 20:12 
QuestionRe: How to make a "dungeon"(kinda of a small labyrinth) using devc and matrix Pin
ZurdoDev31-Jan-20 10:48
professionalZurdoDev31-Jan-20 10:48 
QuestionFileSystemWatcher Question Pin
Kevin Marois28-Jan-20 6:07
professionalKevin Marois28-Jan-20 6:07 
AnswerRe: FileSystemWatcher Question Pin
Eddy Vluggen28-Jan-20 7:21
professionalEddy Vluggen28-Jan-20 7:21 
AnswerRe: FileSystemWatcher Question Pin
Gerry Schmitz28-Jan-20 7:57
mveGerry Schmitz28-Jan-20 7:57 
AnswerRe: FileSystemWatcher Question Pin
Luc Pattyn28-Jan-20 10:05
sitebuilderLuc Pattyn28-Jan-20 10:05 
GeneralRe: FileSystemWatcher Question Pin
Gerry Schmitz29-Jan-20 3:38
mveGerry Schmitz29-Jan-20 3:38 
AnswerRe: FileSystemWatcher Question Pin
Nathan Minier29-Jan-20 5:35
professionalNathan Minier29-Jan-20 5:35 
QuestionExpando object - creating a dynamic class and reading the property types in a unit test Pin
Simon_Whale27-Jan-20 9:45
Simon_Whale27-Jan-20 9:45 
QuestionRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Eddy Vluggen27-Jan-20 11:11
professionalEddy Vluggen27-Jan-20 11:11 
AnswerRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Simon_Whale27-Jan-20 12:43
Simon_Whale27-Jan-20 12:43 
GeneralRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Eddy Vluggen27-Jan-20 14:31
professionalEddy Vluggen27-Jan-20 14:31 
QuestionRegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 2:31
Lupu5R3x24-Jan-20 2:31 
Hi I have this Pcre Regex .{1,15}\K(\s{1,2}|$) that I use in my Autoit code to split a text at a N length, but the split is at the last space within the N length.

Now I'm trying to convert it to C#, but C# don't understand the \K and my RegEx understanding is very basic, I had some on helping me with this one I'm now trying to convert.

My hope is that some one here could help me achieve the same with C#.

My code from Autoit
		This splits a large text up into cunks at N lengt, at the last space within the nLength specified, and seperated with a @CRLF
		eg. 'A child asked his father, "How were people born?" So his father said, "Adam and Eve made babies, then their babies became adults and made babies, and so on."
		Would be formated as this:
		A child asked his father, "How were people born?" So his father said, "Adam and Eve
		made babies, then their babies became adults and made babies, and so on."
	#ce
	Local $sResult = StringRegExpReplace($sString, ".{1," & $nLenght - 1 & "}\K(\s{1,2}|$)", @CRLF)
return $sResult


Cheers
/LR
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Pete O'Hanlon24-Jan-20 3:38
mvePete O'Hanlon24-Jan-20 3:38 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 4:03
Lupu5R3x24-Jan-20 4:03 
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 5:00
mveGerry Schmitz24-Jan-20 5:00 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 6:11
Lupu5R3x24-Jan-20 6:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.