Is there a simple way to move percentage pointer after the value:
120 @ %60 {a} >> 120 @ 60% {a}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this:
The
%(\d+)pattern matches a % symbol followed by at least one digit. The digits are captured in a group which is referenced via the$1in the replacement pattern$1%, which ends up placing the % symbol after the captured number.If you need to account for numbers with decimal places, such as %60.50, you can use this pattern instead:
@"%(\d+(?:\.\d+)?)"