Programming Index Cards

April 10, 2009

Transportable Regular Expressions

Filed under: Regular Expressions — Tags: , — apcig @ 9:01 pm

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>

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.