# Regex usage in TSystem::ListLibraries()

**URL:** <https://root-forum.cern.ch/t/regex-usage-in-tsystem-listlibraries/52503>\
**Category:** Newbie\
**Created:** [November 24, 2022, 12:25pm UTC](https://root-forum.cern.ch/t/regex-usage-in-tsystem-listlibraries/52503 "2022-11-24T12:25:48Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [November 25, 2022, 3:29pm UTC](https://root-forum.cern.ch/t/regex-usage-in-tsystem-listlibraries/52503/17 "2022-11-25T15:29:56Z")

</div>

@couet This output is terribly wrong. The regexp `"Core"` should return nothing (there is no library with the full file name “`Core`”. Only a regexp like `".*Core.*"` should return both libraries.

---

_[View the full topic](https://root-forum.cern.ch/t/regex-usage-in-tsystem-listlibraries/52503)._
