Regular Expressions - Exercise
Здравейте,
тези Regular Expresson, са Ужасът.
можете ли да погледнете следните 3 задачи?
Условия:
https://softuni.bg/downloads/svn/Fundamentals-Of-Programming/Jan-2020/09.%20CSharp-Fundamentals-Regular-Expressions/09.%20CSharp-Fundamentals-Regular-Expressions-Regex-Exercise.docx
1.https://pastebin.com/rFGjfT8M - 80/100?
2.https://pastebin.com/f6dv9A3Y - 60/100 , решена е с char.IsLetterOrDigit
3.https://pastebin.com/BA8rd71E 50/100 - тук въпроса е при този инпут - %Valid%<Valid>valid|10|valid20$, как да си напавя pattern-a верен - @"%([A-Z][a-z]+)%<([A-Z][a-z]+)>\|([0-9]+)\|(\d+\.?\d*)\$"
много благодаря, ще ги наглася и другите задачи. Сега видях в условието - "Between each part there can be other symbols, except ('|', '$', '%' and '.')".
[^|$%.]*
/
gm
Match a single character not present in the list below
[^|$%.]*
* Quantifier — Matches between zero and unlimited times, as many times as possible, giving back as needed (greedy)
|$%. matches a single character in the list |$%. (case sensitive)