Between 2 symbols.

Advanced Renamer forum
#1 : 10/02-22 05:22
Larson Randle
Larson Randle
Posts: 4
How do i grab just the 47ODHW4 in between the "-" and "_" below?

the-mind-reader-47ODHW4_1080_30.000fps_001.mp4


10/02-22 05:22
#2 : 10/02-22 08:13
David Lee
David Lee
Posts: 1125
Use the Regular Expression: .*-([^_]*).*
Your string will be returned as \1


10/02-22 08:13
#3 : 19/02-22 03:23
Larson Randle
Larson Randle
Posts: 4
Reply to #2:
https://imgur.com/a/NvCSj8m

did i do something wrong? i want to remove the: 47ODHW4


19/02-22 03:23 - edited 19/02-22 03:24
#4 : 19/02-22 10:28
David Lee
David Lee
Posts: 1125
Reply to #3:
You Didn't say that you wanted to REMOVE the pattern!

Try...
Remove pattern: .*-\K[^_]*_
Use regular expressions

The metacharacter \K is an instruction that the preceding pattern should be excluded from the final match.


19/02-22 10:28 - edited 19/02-22 10:35
#5 : 20/02-22 01:15
Larson Randle
Larson Randle
Posts: 4
Reply to #4:
thanks man. you guys are the best!


20/02-22 01:15