Using Regex to delete strings in a string -
i have following string:
m_var.a2345_dischrg_reason_code m_var.a2611a_dischrg_reason_code.trimstart("0"c)
i need find of these , make it:
m_var.a2345 m_var.a2611a.trimstart("0"c)
how can using regular expression?
yes, used "dischrg_reason_code" example. codes:
m_var.a2345_xxx_xxxx_xxx m_var.a2611a_dischrg_reason_code.trimstart("0"c) .a2111e_yuiu_uiouuoiu
and want string after period (including period) , before first "_"
just find _dischrg_reason_code
, replace empty string. assumes code appears once in data. if appear multiple times, should update question , show sample data.
Comments
Post a Comment