I have an HTML response body/string. Part of that html content are these strings -
<h2><a href="javascript:;" class="user-name-class">MY_USER_NAME<b></b></a></h2>
["media_detail","init",[false,"",null,true,1,4,"99999_XXXXX_99999",11836530,"00076f7474727febc37a8825d373a5be","\/p\/LdvJWSF-6b\/","\/accounts\/login\/"]],
From these I need to extract MY_USER_NAME
and 99999_XXXXX_99999
I would appreciate help from regex rockstars. This is in ruby 1.9.3. Thanks.
UPDATE: We are using regex because this is not done in realtime, so performance is not a concern.