how can I use both split and substr in jquery [closed]

  javascript, jquery, php

I have a string like
var string1= "b_31_Cat5_5e%RJ45%Male";

I want the result like
var result = Cat5_5e%RJ45%Male

The number ’31’ is dynamic. So it may be either 3 or 31,311 etc.
The name is also dynamic Cat5_5e%RJ45%Male . It may or may not contain under scores(_). I want to remove first 2 underscore, not the third one. The third one is the name. I need the name.
Then how can I get this result in jQuery?

Source: Ask PHP

LEAVE A COMMENT