How can I get four numbers from strings in this format:
Some texts with number 1 ( 10 / 100 ), some other texts ... From -10 ° C to 50 ° C
Some other texts with two rooms ( 10 / 100 ), some other texts ... From -11 ° C to -2 ° C
Some other texts from -30 numbers ( 100 / 1001 ) some other texts ... from 2 ° C to 12 ° C
The first two numbers are in brackets and are separated by a slash. In addition, there is no space behind the slash; I had to add it in order to be able to make the numbers bold. Both numbers are positive integers.
The third number is always between "From" and the first "° C".
The fourth number is always “° C to” and the last “° C”.
There are no other brackets in the line, and there is only one word "From" in it.
I am using C # and .NET 3.5.
source
share