what regex to get all matches:
IF(.....);
I need to get the beginning and end of the previous line: the content can be as (well ), and then it can be different (... IF (...) ....)
I need ONLY the content inside IF . Any idea?
This is because I need to get the Excel formula (if condition) and convert it to another language (java script).
EDIT:
I tried
`/IF\s*(\(\s*.+?\s*\))/i or /IF(\(.+?\))/`
this does not work because it only matches if in 'IF(...)'
no )or(
enfix source
share