Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Regex Parsing Chars in a Line

by kel (Sexton)
on Nov 26, 2019 at 05:53 UTC ( [id://11109226]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex Parsing Chars in a Line
in thread Regex Parsing Chars in a Line

The actual code is real simple but an actual script would be deadly if run in a wrong directory. I have neglected to write safety features in them. But in essence it is simply: Parsing a directory of media files. In a loop, running each file through dozens of filters to reformat names and titles, and to remove any unnecessary desiderata. I use hyphens as my main field seperators, so only need two: Author and Title, but can accomodate a third. For example it is important in Fiction to keep Author field first, as that is used to further parse into categories, which is often parsed from from the Title (and extra Series/Subtitle) fields. The opposite is true in Nonfiction, where the author is often optional (as the publisher may be more relevant). Plus, there are *many* scripts and functions, each used as needed. Some will create underscores, and encapsulate dates, others will remove them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 21:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found