|

Search results for regex



Answer:   This can be easily done with regular expression: test = Regex.Replace(test, @"s{2,}", " ");   ...
Question:  What pattern would following RegEx match: (#?([A-Fa-f0-9]){3}(([A-Fa-f0-9]){3})?) Answer: This should be easy for the web developers. ...
Task: Explain what does function below does. Give an example, how would you use it. public static string TestQuestion(string date) { return Re ...
Question: Given a line of text, write a regular expression to strip all the HTML tags from it? Answer: public static string CleanHTML(string htmlPag ...
Write a regular expression which matches a email address Answer: This is very tricky question. Matching emails is not as trivial as it seems and th ...
Answer: Simplest regex would be <a[^>]*?>([^>]*?)</a> whitch matches properly formated HTML.  I got lots of comments ...