I would like to parse a string to return only a value that is in between bracket symbols, such as [10.2%]
. Then I would need to strip the "%"
symbol and convert the decimal to a rounded up/down integer. So, [10.2%]
would end up being 10
. And, [11.8%]
would end up being 12.
Hopefully I have provided sufficient information.