I have a set of key/value pairs that lists executables using the fully qualified name as follows:
["exec"] = "/share/home/00288/tg455591/NAMD_2.8b3/NAMD_2.8b3_Linux-x86_64-MVAPICH-Intel-Ranger/namd2",
However, I would like to take out the directory location and only print the executable, such as the following:
["exec"] = "namd2",
How can I construct a regular expression to make this change? Keep in mind all the executables in the file are different, but they have similar format. The size of the file is approximately 6000 lines. Thanks in advance.