I'm not very strong with RegEx but I am using a small regex expression and need assistance. The expression works, but I have been asked to turn the regex expression into a constant variable.
What's the best way for me to do this? Here is the code in question.
  const storeNameDetails = (store) => {
    const truncStoreNo = store.storeNo?.padStart(4, '0');
    return STORE_LIST[truncStoreNo]?.replace(/ *\([^)]*\) */g, '');
  };
 
    