I need a regular expression with the condition that ..if there is an occurrence of character | one time ;the pattern immediately following is ARGS or URL
For example
abcd
ab|ARGS
cd|URL
etc is valid
abcd|
ab||ARGS
ab|cd
etc are invalid (should not match )