Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
So here is what I have
txtFull.Text = txtFirst.Text + “\n” + txtSecond.Text;
not sure why its not working
You should use the quotes " (Unicode: U+0022) for strings instead of the comma quotation mark “...” (Unicode: U+201C and U+201D)
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I want to clear just birkatmankontur list but this code clears all lists in my program
katmankonturlari.Add(ii, birkatmankontur);
katmankonturlari.ToList();
birkatmankontur.Clear();
You probably want something like this:
// Create a shallow copy of birkatmankontur and add it into katmankonturlari
katmankonturlari.Add(ii, birkatmankontur.ToList());
// Clear original birkatmankontur;
// note, that katmankonturlari contains birkatmankontur's copy
birkatmankontur.Clear();
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm reading an email and performing a few operations.
In email it can't be in defined format as below,
Email formats:
Hi Team,
Please create 7025-45-365-14, 9851-98-524-12
5741-55-452-45
Thanks
MailItem.Body = "Hi Team,\r\n\r\n \r\n\r\nPlease create 7025-45-365-14, 9851-98-524-12\r\n\r\n5741-55-452-45.\r\n\r\n \r\n\r\nThanks\r\n"
My goal is to exact only the string parts into a loop one by one as below,
1st loop > 7025-45-365-14
2nd loop > 9851-98-524-12
3rd loop > 5741-55-452-45
I tried various logic but I can't extract as I need. Can someone help me?
To extract digits in that pattern (4-2-3-2)
foreach (var m in new Regex(#"\b(\d{4}-\d{2}-\d{3}-\d{2})\b").Matches(mail))
Console.WriteLine(m.Value);
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
For example I have this string:
BTW This is a comment "hahaha"
BTW is a comment operator and all statements after it are ignored.
I need to put BTW as 'comment_operator' and 'This is a comment "hahaha"' as 'comment' in a datagridview.
But I can't do it because I used space as a delimiter in my code, so 'This is a comment "hahaha"' will be concatenated too but I need it as it is.
Can someone enlighten me with this? Thanks.
I assume you want the separate 2 parts by the first occurrence of space. You can use the code below:
string text = #"BTW This is a comment ""hahaha""";
string comment_operator = text.Substring(0, text.IndexOf(' '));
string comment = text.Substring(comment_operator.Length + 1);
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
[code]>
10 /td>[/code]
I want to get 10 from this line. But I need to preserve the pattern. How can I write an expression that gets:
, newline, ignorewhitespace OR included indeterminate spaces, 10, ignorewhitespace OR included all space, /td
Thanks,
JOe K.
Ok, I'll be nice and help you this time. =)
I assumed that the number you are looking for can change.
var result = Regex.Match(
"[code]> 101 /td>[/code]",
#"(?<=\>\s*)\d+(?=\s*/td\>)").Value;
But please, try doing it the next time... I'll point you a tool that could help in designing and learning Regex:
http://www.radsoftware.com.au/regexdesigner/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I cannot use Except keywords due to version problem. Anyone here know. How can i select all rows except not those rows which contain specific text.select all rows except those which contain specific text.I cannot use Except Keyword due to version problem in MS S.Q.L
select * from your_table
where some_column not like '%specific text%'
Select * from Table1
where EmpPU NOT Like '%CSE%'
AND EmpPU NOT Like '%ECE%'
AND EmpPU NOT Like '%EEE%'