There is a string that can be of the form 1000 or <1100 or> = 1200 or <= 1300 or = 1000. You need to break this string and get a comparison operator, which can consist of one or two characters and must be in front of a number. The number in turn can be any integer. According to the results of the execution, the values ​​in two variables must be: in the first comparison operator, and in the second the number itself. I would be very grateful for the help!

    1 answer 1

    /([<=>]{1,2})(\d+)/ 
    • Your regular season works a little better. Thank. - makbeth
    • Mark the answer correct, it will help others with the same questions. - Get