Click here to Skip to main content
14,451,574 members
   

C#

 
AnswerRe: FileSystemWatcher Question Pin
Luc Pattyn28-Jan-20 11:05
sitebuilderLuc Pattyn28-Jan-20 11:05 
GeneralRe: FileSystemWatcher Question Pin
Gerry Schmitz29-Jan-20 4:38
mveGerry Schmitz29-Jan-20 4:38 
AnswerRe: FileSystemWatcher Question Pin
Nathan Minier29-Jan-20 6:35
professionalNathan Minier29-Jan-20 6:35 
QuestionExpando object - creating a dynamic class and reading the property types in a unit test Pin
Simon_Whale27-Jan-20 10:45
professionalSimon_Whale27-Jan-20 10:45 
QuestionRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Eddy Vluggen27-Jan-20 12:11
professionalEddy Vluggen27-Jan-20 12:11 
AnswerRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Simon_Whale27-Jan-20 13:43
professionalSimon_Whale27-Jan-20 13:43 
GeneralRe: Expando object - creating a dynamic class and reading the property types in a unit test Pin
Eddy Vluggen27-Jan-20 15:31
professionalEddy Vluggen27-Jan-20 15:31 
QuestionRegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 3:31
MemberLupu5R3x24-Jan-20 3: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 4:38
communityengineerPete O'Hanlon24-Jan-20 4:38 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 5:03
MemberLupu5R3x24-Jan-20 5:03 
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 6:00
mveGerry Schmitz24-Jan-20 6:00 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 7:11
MemberLupu5R3x24-Jan-20 7:11 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 8:20
mveGerry Schmitz24-Jan-20 8:20 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 9:01
MemberLupu5R3x24-Jan-20 9:01 
AnswerRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 8:47
MemberLupu5R3x24-Jan-20 8:47 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 9:09
mveGerry Schmitz24-Jan-20 9:09 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 9:21
MemberLupu5R3x24-Jan-20 9:21 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Gerry Schmitz24-Jan-20 9:39
mveGerry Schmitz24-Jan-20 9:39 
GeneralRe: RegExReplace \K (discard what has been matched so far) workaround / Alternative Pin
Lupu5R3x24-Jan-20 9:45
MemberLupu5R3x24-Jan-20 9:45 
QuestionCrystal Report Load Report failed error Pin
Member 1466074223-Jan-20 17:59
MemberMember 1466074223-Jan-20 17:59 
AnswerRe: Crystal Report Load Report failed error Pin
Pete O'Hanlon23-Jan-20 22:25
communityengineerPete O'Hanlon23-Jan-20 22:25 
AnswerRe: Crystal Report Load Report failed error Pin
thatraja28-Jan-20 2:37
professionalthatraja28-Jan-20 2:37 
QuestionI want to communicate with Graphdata from C# Core Pin
anil15087523-Jan-20 8:05
professionalanil15087523-Jan-20 8:05 
AnswerRe: I want to communicate with Graphdata from C# Core Pin
ZurdoDev23-Jan-20 8:35
mveZurdoDev23-Jan-20 8:35 
GeneralRe: I want to communicate with Graphdata from C# Core Pin
anil15087528-Jan-20 7:55
professionalanil15087528-Jan-20 7: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.