我正在尝试过滤掉第一个逗号及其之前的所有内容。我应该只使用正则表达式还是拆分工作?
// notice multiple commas, I'm trying to grab everything after the first comma.
str = 'jibberish, text cat dog milk, chocolate, rainbow, snow',
// this gets the text from the first comma but I want everything after it. =(
result = str.split(',')[0];