This is probably a simple question but I’m new to bash and OSX. I would like a regex expression that returns a string between two periods followed by the word LSSharedFileList.
For example “org.videolan.vlc.LSSharedFileList.plist.lockfile” would return only “vlc”.
The beginning and end of the string may change but I will only ever need the text between the periods preceding “LSSharedFileList”.
Any help would be much appreciated. Thanks.
1 Answer