在部署 Azure RM 模板时,我一直试图解决以下问题。
New-AzureRmResourceGroupDeployment : 9:54:31 PM - Resource Microsoft.Web/certificates 'redacted' failed with message '{ "Code": "BadRequest", "Message": "The service does not have access to '/subscriptions/redacted/resourcegroups/redacted/providers/microsoft.keyvault/vaults/redacted' Key Vault. Please make sure that you have granted necessary permissions to the service to perform the request operation.", "Target": null, "Details": [
{
"Message": "The service does not have access to '/subscriptions/redacted/resourcegroups/redacted/providers/microsoft.keyvault/vaults/redacted' Key Vault. Please make sure that you have granted necessary permissions to the service to perform the request operation."
}, …Run Code Online (Sandbox Code Playgroud) 我想分割列并使用正则表达式获取数据.使用反向引用寻找更简单的解决方案.
previous balance payments adjustments charges payment without fine payment with fine
20,251.97 - 0.00 - 0.00 + 53,391.67 = 73,643.64 74,393.64
这是代码
#!/usr/bin/perl
use strict;
my $regex = qr/^(\d|-)?(\d|,)*\.?\d*$/;
my $data = "20,251.97 - 0.00 - 0.00 + 53,391.67 = 73,643.64 74,393.64"
Run Code Online (Sandbox Code Playgroud) 无论如何,我可以使用Perl从HTML页面中提取样式标记数据
#!/usr/bin/perl
use strict;
my $HTML = <<"EOF";
<HTML>
<head>
<style type='text/css'>
#yui-dt0-bdrow0 td{background:#CFF;}
#yui-dt0-bdrow1 td{background:#CFF;}
#yui-dt0-bdrow2 td{background:#CFF;}
</style>
</head>
</HTML>
EOF
Run Code Online (Sandbox Code Playgroud)
我需要yui-dt0-bdrow0 td{background:#CFF;}从上面的HTML代码中提取信息.
我搜索了很多模块,但找不到合适的模块.除此之外,我没有尝试编写任何代码来提取信息
任何帮助表示赞赏.