Simple C# logic
Budget: $10 – $30 USD
Hi!
I need a logic written for the following:
I want to find and replace all instances of . (period) in a string with [period]. The . should not have any spaces before or after it. For example,
Hi. Hello.
Returns: Hi. Hello
Hi. My.Name is Momo.
Returns: Hi. My[period]Name is Momo.
Hi . My Name.is Momo.
Returns: Hi. My Name[period]is Momo.
Hi. My.Name.Is.Momo.
Returns: Hi. My[period]name[period]is[period]Momo.
Basically, it replaces only those . with [period] which does not have a leading and trailing space. More Details in PM. You can start writing logic from
if(1){
//logic here
}
I don't need an application, just the code.
I need a logic written for the following:
I want to find and replace all instances of . (period) in a string with [period]. The . should not have any spaces before or after it. For example,
Hi. Hello.
Returns: Hi. Hello
Hi. My.Name is Momo.
Returns: Hi. My[period]Name is Momo.
Hi . My Name.is Momo.
Returns: Hi. My Name[period]is Momo.
Hi. My.Name.Is.Momo.
Returns: Hi. My[period]name[period]is[period]Momo.
Basically, it replaces only those . with [period] which does not have a leading and trailing space. More Details in PM. You can start writing logic from
if(1){
//logic here
}
I don't need an application, just the code.