How can I find the link URL by link text with XPath?
Too late for you, but for anyone else with the same question...
//a[contains(text(), 'programming')]/@href
Of course, 'programming' can be any text fragment.
Should be something similar to:
//a[text()='text_i_want_to_find']/@href