Click here to Skip to main content
15,881,281 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 7:20
mveGerry Schmitz24-Jan-20 7:20 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 8:01
Lupu5R3x24-Jan-20 8:01 
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 7:47
Lupu5R3x24-Jan-20 7:47 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 8:09
mveGerry Schmitz24-Jan-20 8:09 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 8:21
Lupu5R3x24-Jan-20 8:21 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 8:39
mveGerry Schmitz24-Jan-20 8:39 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 8:45
Lupu5R3x24-Jan-20 8:45 
QuestionCrystal Report Load Report failed error Pin
Member 1466074223-Jan-20 16:59
Member 1466074223-Jan-20 16:59 
AnswerRe: Crystal Report Load Report failed error Pin
Pete O'Hanlon23-Jan-20 21:25
mvePete O'Hanlon23-Jan-20 21:25 
AnswerRe: Crystal Report Load Report failed error Pin
thatraja28-Jan-20 1:37
professionalthatraja28-Jan-20 1:37 
QuestionI want to communicate with Graphdata from C# Core Pin
anil15087523-Jan-20 7:05
professionalanil15087523-Jan-20 7:05 
AnswerRe: I want to communicate with Graphdata from C# Core Pin
ZurdoDev23-Jan-20 7:35
professionalZurdoDev23-Jan-20 7:35 
GeneralRe: I want to communicate with Graphdata from C# Core Pin
anil15087528-Jan-20 6:55
professionalanil15087528-Jan-20 6:55 

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.