A
A
Alexander2018-04-19 09:55:56
JavaScript
Alexander, 2018-04-19 09:55:56

How to write a regular expression for a formula?

We need to select the coefficient in front of x and also find the usual numbers from the formula: Here we should have the output:
2x^{2}-231x+23

2, 231, 23

Difficulty: avoid capturing 2 of {2}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jasonOk, 2018-04-19
@sashka73

~ https://regex101.com/r/fvf3ej/3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question