s = '<h2><a href="javascript:;" class="user-name-class">my_user_name<b></b></a></h2>'puts s.split(/"user-name-class">/)[1].split(/</)[0]
Standard input is empty
my_user_name
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!