regex - How do I strip leading section of this string in perl -
i have following string:
[bn_d]hostname=localhost
how strip [bn_d] string using perl? give me string:
hostname=localhost
you can do:
^[^]]*.(.*)$
for that
i have following string:
[bn_d]hostname=localhost
how strip [bn_d] string using perl? give me string:
hostname=localhost
you can do:
^[^]]*.(.*)$
for that
Comments
Post a Comment