Addition-Subtraction of Numbers Within String Take a string as an input, and perform addition/subtraction of all the digits in the string and output the sum of those operations as the result. 

Rules


The digits in the string are read from left to right
If a digit (n) is odd, perform addition with the next digit (n + n1)
If a digit (n) is even, perform subtraction with the next digit (n - n1)
If you've reached the last digit in the string, perform the operation with the first digit in the string
Output will be the sum of all the resulting values
If there is only one digit in the string, perform the operation with itself (n+n or n-n)
If there are no digits in the string, output is 0


Example

Input: r5e6o9mm!/3708dvc    
Process: (5+6) + (6-9) + (9+3) + (3+7) + (7+0) + (0-8) + (8-5)
Output: 32


Notes


Either function or full program is accepted
Maximum input length would depend on your language's limit for a string input
No restrictions on character input, but only half-width digits count towards the output
Fewest bytes wins
Jelly, 17 15 12 bytes

fØDV€ḂT‘ịƲSḤ


Try it online!

Try test cases.

The program keeps only the digits that follow an odd digit then computes twice the sum.

fØDV€ḂT‘ịƲSḤ   
f                   Remove anything that isn't...
 ØD                 a digit.
   V€               Cast each digit to an integer
         Ʋ          Monad:
     Ḃ              Parity of each digit.
      T             Indices of truthy elements (odd digits).
       ‘            Increment.
        ị           Index into list of digits.
                    Wraps to beginning and if there are no digits this returns 0.
          S         Sum.
           Ḥ        Double.