Click here to Skip to main content
15,887,812 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionMatch if token exists only power of n times; Match if length of string is power of n Pin
Member 1556219610-Mar-22 9:35
Member 1556219610-Mar-22 9:35 
AnswerRe: Match if token exists only power of n times; Match if length of string is power of n Pin
Richard Deeming10-Mar-22 20:58
mveRichard Deeming10-Mar-22 20:58 
GeneralRe: Match if token exists only power of n times; Match if length of string is power of n Pin
Member 1556219611-Mar-22 2:23
Member 1556219611-Mar-22 2:23 
Questionregex for one Capital Pin
Member 140883235-Mar-22 10:01
Member 140883235-Mar-22 10:01 
AnswerRe: regex for one Capital Pin
OriginalGriff5-Mar-22 10:09
mveOriginalGriff5-Mar-22 10:09 
GeneralRe: regex for one Capital Pin
Member 140883235-Mar-22 10:22
Member 140883235-Mar-22 10:22 
GeneralRe: regex for one Capital Pin
OriginalGriff5-Mar-22 20:20
mveOriginalGriff5-Mar-22 20:20 
GeneralRe: regex for one Capital Pin
Richard Andrew x646-Mar-22 4:41
professionalRichard Andrew x646-Mar-22 4:41 
GeneralRe: regex for one Capital Pin
OriginalGriff6-Mar-22 5:38
mveOriginalGriff6-Mar-22 5:38 
QuestionRegex with condition? Should be easy Pin
Cp Divers21-Feb-22 4:44
Cp Divers21-Feb-22 4:44 
QuestionRe: Regex with condition? Should be easy Pin
Eddy Vluggen21-Feb-22 9:48
professionalEddy Vluggen21-Feb-22 9:48 
AnswerRe: Regex with condition? Should be easy Pin
Peter_in_278021-Feb-22 12:35
professionalPeter_in_278021-Feb-22 12:35 
QuestionRe: Regex with condition? Should be easy Pin
Richard MacCutchan21-Feb-22 21:10
mveRichard MacCutchan21-Feb-22 21:10 
AnswerRe: Regex with condition? Should be easy Pin
Peter_in_278021-Feb-22 23:03
professionalPeter_in_278021-Feb-22 23:03 
GeneralRe: Regex with condition? Should be easy Pin
Richard MacCutchan23-Feb-22 3:03
mveRichard MacCutchan23-Feb-22 3:03 
GeneralRe: Regex with condition? Should be easy Pin
Peter_in_278023-Feb-22 13:42
professionalPeter_in_278023-Feb-22 13:42 
GeneralRe: Regex with condition? Should be easy Pin
Cp Divers22-Feb-22 4:06
Cp Divers22-Feb-22 4:06 
GeneralRe: Regex with condition? Should be easy Pin
Peter_in_278022-Feb-22 12:40
professionalPeter_in_278022-Feb-22 12:40 
Question06h36m03s to 06h36.1, etc., in filename via regex? Pin
Member 148351468-Feb-22 10:02
Member 148351468-Feb-22 10:02 
AnswerRe: 06h36m03s to 06h36.1, etc., in filename via regex? Pin
Richard Deeming8-Feb-22 22:12
mveRichard Deeming8-Feb-22 22:12 
GeneralRe: 06h36m03s to 06h36.1, etc., in filename via regex? Pin
Member 148351467-Mar-22 21:52
Member 148351467-Mar-22 21:52 
Richard, very sorry for late reply. I'm on a new browser and forgot to put in new bookmark folder for my posts!

Richard, my renamer is good at handling renaming files, it's just the regex part that I dont' know how to deal with. The renamer is fantastic but in one of my crashes, I lost years worth or regex naming files all in one backup file. It was a great loss. And it handled all sorts of difficult things like this. But the renamer's forum is gone so no going back to my posts there to try to rebuild.

All that's needed is the before and after, as it were. How to go from scenarios like this within the file name:

06h36m03s- filename a
06h36m05s- filename b
06h36m12s- filename c
06h36m21s- filename d
06h36m33s- filename e
...

to padded from 1-9 if more than 9
i.e., if above went to 10 and beyond

to:

06h36.1- filename a
06h36.2- filename b
06h36.3- filename c
06h36.4- filename d
06h36.5- filename e

to padded from 1-9 if more than 9:

06h36.01- filename a
06h36.02- filename b
06h36.03- filename c
06h36.04- filename d
06h36.05- filename e
06h36.06- filename f
06h36.07- filename g
06h36.08- filename h
06h36.09- filename i
06h36.10- filename j
06h36.11- filename k

I know it's a tall order but my renamer handled this type of complexity and more! I had files generated by screenshot app and recorded radio programs with all sorts of different naming conventions, and for years I used this app with perfect results. It's just that in the switch to a new computer, and all but 1 backup option, I lost of my years of scripting.

Any help appreciated! Thanks!
AnswerRe: 06h36m03s to 06h36.1, etc., in filename via regex? Pin
RedDk8-Mar-22 8:18
RedDk8-Mar-22 8:18 
QuestionUse content of a database field in RegEx Pin
John Bradford 202227-Jan-22 7:31
John Bradford 202227-Jan-22 7:31 
AnswerRe: Matching a unknown range of lines Pin
Pete O'Hanlon18-Jan-22 22:37
mvePete O'Hanlon18-Jan-22 22:37 
Questionregex related query Pin
Member 154859391-Jan-22 8:23
Member 154859391-Jan-22 8:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.