I am looking to create a Regex to extract everything before the first slash except if it is in single or double quotes. Currently, I have:
^(.*?)/
Now, I am at a lost. Based on the different texts below, I just want the bolded part below:
Text
abc,def,ghi,jkl,mno /123
/abc,def,ghi,jkl,mno 123
abc,/def,"/ghi",jkl,mno /123
abc,def,"/ghi",jkl,mno /123
abc,def,'/ghi',jkl,mno /123