bash doesn't seem to like dots too close to brackets: echo "${_VAR//[^0-9a-zA-Z.,_-]/}"
works fine. lbrtchx On 3/3/24, Albretch Mueller <lbrt...@gmail.com> wrote: > _VAR="admissions.piedmont.edu_files?trackid=wnm:1980&PDFfiller=what-is-the-second-fundamental-theorem-of-calculus(1).pdf" > > echo "${_VAR//[^a-zA-Z0-9_-]/}" > > echo "${_VAR//[^a-zA-Z0-9_-.]/}" >