I have this two strings:
(username~contains~'ren'~and~status~contains~false)
(status~contains~false~and~username~contains~'ren')
i need one regex that find what is the status value after contains~
I try something like:
/(?<=status~contains~).*?(?=[)])|(?<=status~contains~).*?(?=~)/gi
pass in exemple 1: (username~contains~'ren'~and~status~contains~false)
fail in exemple 2: (status~contains~false~and~username~contains~'ren')
I need only the return true or false, but in the second exemple i get false~and~username~contains~'ren'