Can anyone demonstrate how you can base64 decode a particular section of a string using a regex search? I would like the final result to return the entire string but with the base64 areas decoded.
Text between the category tags and subcategory tags should be decoded and then entire strinf should be returned.
<attack_headline><site_id>1</site_id><category>U1FMIEluamVjdGlvbg==</category><subcategory>Q2xhc3NpYyBTUUwgQ29tbWVudCAmcXVvdDstLSZxdW90Ow==</subcategory><client_ip>192.168.1.102</client_ip><date>1363807248</date><gmt_diff>0</gmt_diff><reference_id>E711-3EFB-5F43-5FAC</reference_id></attack_headline>