Solvency String Format
by tonytlwu
HTML
<p><button name="Go">Test</button></p>
<p><textarea rows=40 cols=90>
Classification - general
The PRA Rulebook
(B) Own Funds Part 3.1 to 3.7 sets out in broad terms the requirements for the different tiers of own funds.
(i) To constitute Tier 1 own funds:
the item must be an item of basic own funds; and
(ii) the item must substantially possess the characteristics set out in Own Funds Part 3.5(1) and 3.5(2), namely that:
the item is available, or can be called up on demand, to fully absorb losses on a going-concern basis as well as in the case of winding up (permanent availability);
(iii) in the case of winding up, the total amount of the item is available to absorb losses and the repayment of the item is refused to its holder until all other obligations, including insurance and reinsurance obligations to policyholders, have been met (subordination); and
32.3. in assessing the extent to which (ii) is satisfied, the features set out in Own Funds Part 3.6 must be considered. These are (briefly): sufficient duration, absence of incentives to redeem, absence of mandatory servicing costs and absence of encumbrances.
32.4. For Tier 2 own funds, the item can be a basic own fund item or an ancillary own fund item. Tier 2 basic own fund items need only substantially possess the characteristics set out in Own Funds Part 3.5(2) (subordination). Tier 2 ancillary own fund items must substantially possess the characteristics set out in Own Funds Part 3.5(1) and 3.5(2) (permanent availability and subordination). In all cases, the features set out in Own Funds Part 3.6 (described above) should be taken into consideration.
33.7. any other provision or arrangement which might reasonably be regarded as providing an economic basis for the likely redemption of the item.
Early redemption or repayment for change of law or regulation
(A) On 8 July 2019 a number of changes to the Level 2 Delegated Regulation came into effect. These changes included an amendment to make...
JavaScript
$('button').on("click", function(){
/*
toto
- find sub roman numeral number and replace with LI
*/
var text = $('textarea').val();
debugger;
// Linrbreaks to <p></p>
text = text.replace(/\r\n|\r|\n/g,'</p>\n<p>');
// <p>(tab) to <p>
text = text.replace(/<p>\t/g,'<p>');
// Removes tabs
text = text.replace(/\t/g,' ');
//. + emphasised space to emphasised space
text = text.replace(/\. /g,' ');
// Each (A) item to <p></p>
text = text.replace(/<p>\([A-Z]\) (.*?)<\/p>/gi,'<li>$1</li>');
// Each
text = text.replace(/<\/p>\n<li>/gi,'</p>\n<ol style="list-style-type: upper-alpha;"><li>');
text = text.replace(/<\/li>\n<p>/gi,'</li></ol>\n<p>');
text = text.replace(/<\/li>\n<p>/gi,'</li></ol>\n<p>');
debugger;
$('#output').html(text);
})