Great entry on Regular expressions at Technical Interview Patterns.
Probably the most popular interview question on regular expressions:
Question #1: Write RegEx which would extract all anchor text from HTML page
Answer:
<a.[^>]*?>(.[^>]*?)</a>
Great entry on Regular expressions at Technical Interview Patterns.
Probably the most popular interview question on regular expressions:
Question #1: Write RegEx which would extract all anchor text from HTML page
Answer:
<a.[^>]*?>(.[^>]*?)</a>