skip to Main Content

Javascript – Regular expression that allows me to match all but the defined substring

I have the following string: testInputs.abc_def.alpha=abc^ORtestVars.var23.nameISEMPTY^testInputs.alpha_bravo.more.otheroneCONTAINSsomething^testVars.anotherone!=abc^testVars.mYVar!=abc I need it to match testInputs.abc_def.alpha testVars.var23.name testInputs.alpha_bravo.more.otherone testVars.anotherone testVars.mYVar I can match all occurences, but the problem is that it also matches some operators that it shouldnt: ISEMPTY CONTAINS (And a slew of…

VIEW QUESTION

Javascript – Need to use regex to get a string from a url

I have the following string https://test.io/content/storage/id/urn:aaid:sc:US:8eda16d4-baba-4c90-84ca-0f4c215358a1;revision=0?component_id=e62a5567-066d-452a-b147-19d909396132 I need to use regex to get the following string urn:aaid:sc:US:8eda16d4-baba-4c90-84ca-0f4c215358a1 from the url above. The string will always begin with a urn and end with a letter or number. Can someone please help?…

VIEW QUESTION
Back To Top
Search