|
C-P-User-3 wrote: Evidently, that character has special meanings and powers in the PERL syntax.
If so, escape it.
|
|
|
|
|
PIEBALDconsult wrote: If so, escape it
Escape IT - wish I thort of that much earlier
but IT is where I made and still makes money (- though these days freelancing as I choose.)
can take the man out of it, but cant take it out of the man. Oops, sorry, not PC (no, not the thing on your desk "PC")
can take the person out of it, but cant take it out of the person.
Sin tack ear lol
Pressing the any key may be continuate
|
|
|
|
|
Why PERL? Use standard regex to find matches and then do a replace...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
BRU allows you to append it anywhere or replace it. If you're using that, it should allow you a preview of the new filename (assuming you're using the GUI).
|
|
|
|
|
You are Correct
Bassam Abdul-Baki wrote: it should allow you a preview of the new filename
I made an error, and now want to correct it.
Certain filenames had a sort of nomenclature like this...
"xxxxxxx_4"
Bulk Rename Utility successfully removed the "_4" as I requested (actually, "_\d", no quotes) but it also removed several thousand desirable instances of that pattern which were embedded into other file names.
i.e., the desired part is in the middle of other file names, which I did not see on the preview screen when I was targeting the pattern on the end of the file names.
|
|
|
|
|
Then remove from position might be better or backwards replace. They may also have instance count, but I'm not at my desk to verify.
I've been using BRU for years. My first thought was ugly GUI and my second was amazing GUI. It really can do anything. Just preview before accepting.
|
|
|
|
|
Bassam Abdul-Baki wrote: My first thought was ugly GUI and my second was amazing GUI.
Mind reader ?
Exact same thoughts here.
|
|
|
|
|
Bassam Abdul-Baki wrote: Then remove from position might be better or backwards replace
No, the filenames are not currently uniform, so the trailing underscore and digit (sometimes there were two digits) could be at position N, N+1, N+2, etc.
I don't know how to do a backwards replace. Is that in their help facility ?
Can you show me here ?
|
|
|
|
|
Seems to be more complicated than I remember. Try this:
In RegEx (1):
Match: (.*)-\d+([^-]+)
Replace: \1\2
|
|
|
|
|
Interesting educational activity here on CodeProject.
In my previous post, I placed these three bytes in squence
Quotation mark " (Ascii 022h)
Underscore _ (Ascii 05Fh)
The digit 4 (Ascii 034h)
Quotation mark " (Ascii 022h)
i.e., These four bytes...
"_4"
The CodeProject website removed the underscore from the screen.
A backslash put it back in.
|
|
|
|
|
What is this monstrosity of a UI?
It would be quicker to do this with a quick-and-dirty PowerShell script, IMO.
|
|
|
|
|
C-P-User-3 wrote: Bulk Rename Utility Holy Cr@p![^] That's worse than Kameisi[^]
If you're not dealing with multi-byte characters, why not try something more usable, like Lupas Rename[^]?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Perl Special Variables[^]
Other than $_, I don't believe underscore has any significance in PERL. Perhaps it's the program itself, not the regex expression.
|
|
|
|
|
So, after years of keeping nearly EVERY work email I receive, in my Inbox, I'm trying to now go the route of keeping nothing in my Inbox. All unnecessary mail gets deleted & anything I want to hold onto, gets placed into a folder.
I feel my folder setup is a little messy though, & just looking for suggestions to see if there's a better way I can set them up. There are times I need to go back to an old email & need to shuffle through a few folders to find which folder category I filed the email under.
I basically have a folder for each dept in my company, & then for my IT dept, I have sub folders setup for each application our department works on & maintains. Plus add'l folders for general IT emails & stuff & another separate one for the ticket requests we have come in from around the company.
Anyone have an email folder structure that they like & they're happy with?
Thanks
|
|
|
|
|
Inbox.
ProjectX.
ProjectY.
...
Bugs.
Trashcan.
Sent.
I have rules to move emails to the project and bugs folders; everything else that stays in the inbox will be manually filtered.
Most emails end up in the trash .
I'd rather be phishing!
|
|
|
|
|
Simples, at 4:55pm on a Friday, CTRL+A then DEL
veni bibi saltavi
|
|
|
|
|
Print the important ones, delete everything else. If you need to respond to a printed one, scan it.
|
|
|
|
|
You left out renting storage area for all that paper that accumulated.
And - oh yeah - filing them, too. And looking through those files, which is somehow easier than email based filing?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Hence the JOKE icon on my response.
Must be a Packers or Steelers fan.
|
|
|
|
|
What's a packer steeler?
MarkTJohnson wrote: Hence the JOKE icon on my response. Real reply: ooops! Maybe you can change the icon?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
rent storage space?
shred it, then take it down to the recycling depot.
(Depending where you live may even get a few cent's back for doing it - if nothing else can feel good about saving some trees.)
Sin tack ear lol
Pressing the any key may be continuate
|
|
|
|
|
But now I cannot open attachment from my printed email.. Give me code please
Zen and the art of software maintenance : rm -rf *
Maths is like love : a simple idea but it can get complicated.
|
|
|
|
|
Goalie35 wrote: So, after years of keeping nearly EVERY work email I receive, in my Inbox, I'm trying to now go the route of keeping nothing in my Inbox. Checking your bio, I observe:
Member since Thu 21 Apr 2005
(11 years, 9 months)
And all that comes to mind is . . . really ?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Lol. No, I don't have over 11 years of emails in my Inbox, if that's what you were referring to. I'm not THAT bad
I used to move my Inbox to an archive roughly every 6 months, labeled by the month & year it was archived, to reduce the inbox size (but I did tend to keep nearly all emails, out of fear of losing an email I may needed to reference later). Plus, these 11 years have spanned over several jobs, so I only had about an average of 3 - 4 years of archived emails at any given time.
|
|
|
|
|
I have about 30 email addresses, and get a lot of spam in the important ones. The most successful strategy that I have used for this and general organization is to create a folder for just about every type of message that I might receive, and create filters that send each message to the folder of interest (including spam). What is left in my "In" box is about 10% spam, which is either dispatched, manually filtered, or yet another filter gets created for it. If a message in a folder has not yet been handled properly, I keep it marked as "unread". The folders showing 'unread mail' comprise my "attention still required" list. There is still some manual processing, for example messages from myself, or a co-worker that has a kid on my kid's soccer team, but it works out.
I use this technique for home and work.
I'm retired. There's a nap for that...
- Harvey
|
|
|
|