Regular Expression to Match Specific "Values" in Isolated Group
Posted
by
Gandarez
on Stack Overflow
See other posts from Stack Overflow
or by Gandarez
Published on 2011-11-25T17:46:20Z
Indexed on
2011/11/25
17:50 UTC
Read the original article
Hit count: 176
regex
If have this regular expression to test
(\&TRUNC)[\(]{1,}(.+)[\)]{1,}
And I have this "tester"
((((&TRUNC((1800,000 / 510)) * 510) * 920) + (2 * (510 * 700)) + ((&TRUNC((1800,000 / 510)) - 1) * 2 * 510 * 80)) / 1000000) * 85,715
My expected value is (inside the personal command "&TRUNC(command)")
(1800,000 / 510)
I got this value
1800,000 / 510)) * 510) * 920) + (2 * (510 * 700)) + ((&TRUNC((1800,000 / 510)) - 1) * 2 * 510 * 80)) / 1000000
How can I get only expected value in a separated group?
PS:. The expressions inside the command called for me as "&TRUNC(command)" is variable.
© Stack Overflow or respective owner