Code: Select all
const source = "abc.def.Ghi\n\
@:test(abc.def.Ghi2)";
const re = /(?!\()([a-z]\w+\.)+([A-Z]\w*)/g;
console.log(source.match(re));Das habe ich versucht, aber wie Sie sehen, stimmt es immer noch überein. Wie kann man das beheben?
Code: Select all
const source = "abc.def.Ghi\n\
@:test(abc.def.Ghi2)";
const re = /(?!\()([a-z]\w+\.)+([A-Z]\w*)/g;
console.log(source.match(re));