Q qlwik Client Регистрация 03.04.2013 Сообщения 207 Благодарностей 5 Баллы 18 28.09.2014 #1 Hi, I want remove elements from list, that are shorter then, for example 20 signs, I was trying remove element by regex and put somthing like: ^.{0,20}$ but it doesn't work, any ideas?
Hi, I want remove elements from list, that are shorter then, for example 20 signs, I was trying remove element by regex and put somthing like: ^.{0,20}$ but it doesn't work, any ideas?
rostonix Известная личность Регистрация 23.12.2011 Сообщения 29 067 Благодарностей 5 715 Баллы 113 28.09.2014 #2 Get each line from list in loop, check how many characters in it and do with each line what you wanna do (move to other list, for example) C# to check number of characters: Код: string stringToCount = project.Variables["yourvariable"].Value; return stringToCount.Length.ToString();
Get each line from list in loop, check how many characters in it and do with each line what you wanna do (move to other list, for example) C# to check number of characters: Код: string stringToCount = project.Variables["yourvariable"].Value; return stringToCount.Length.ToString();
Q qlwik Client Регистрация 03.04.2013 Сообщения 207 Благодарностей 5 Баллы 18 28.09.2014 #3 thanks for fast respond