hi dears.
i trying regex todays..
(\[VIDEO\]+?)(.*)(\.) > $1$3 --> spiderman 3[VIDEO] watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
result: spiderman 3[VIDEO].mp4 I SUCCESS THIS. but.
01) result must same "spiderman 3.mp4" "[VIDEO]" i cant remove
02) how can regex search method in script.... ?
thanks dear coders.
regex help section..
regex help section..
newbie or not...........
Re: regex help section..
There are a ton of ways to do this...
01.
02. By using
01.
Code: Select all
(^[^\[]+)(.*\.)(.*) > $1.$3
Code: Select all
regexreplace()
One of my scripts helped you out? Please donate via Paypal
Re: regex help section..
dont work.
example:
spiderman 3[Sound]noremoveee[VIDEO] watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
result: spiderman 3.mp4
must result: spiderman 3[Sound].mp4
because must be after "[VIDEO]" not []
thanks for trying...
example:
spiderman 3[Sound]noremoveee[VIDEO] watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
result: spiderman 3.mp4
must result: spiderman 3[Sound].mp4
because must be after "[VIDEO]" not []
thanks for trying...
newbie or not...........
Re: regex help section..
That's what you've asked for and that's what my regex is doing...01) result must same "spiderman 3.mp4"
To get
Code: Select all
spiderman 3[Sound].mp4
Code: Select all
spiderman 3[Sound]noremoveee[VIDEO] watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
Code: Select all
(^.*?\])(.*\.)(.*) > $1.$3
One of my scripts helped you out? Please donate via Paypal
Re: regex help section..
true.
spiderman 3[Sound]noremoveee[VIDEO]watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
spiderman 3[Sound]noremoveee.mp4 solution for this?
remove after first \[VIDEO\] word.
result is "spiderman 3[Sound]noremoveee.mp4"
regex difficult for my....
really thanks for all replies.
spiderman 3[Sound]noremoveee[VIDEO]watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
spiderman 3[Sound]noremoveee.mp4 solution for this?
remove after first \[VIDEO\] word.
result is "spiderman 3[Sound]noremoveee.mp4"
regex difficult for my....
really thanks for all replies.
newbie or not...........
Re: regex help section..
Code: Select all
(^[^\[]+)(\[(?:Sound|Video)\][^\[]+){1}(.*\.)(.*) > $1$2.$4
Code: Select all
spiderman 3[Sound]noremoveee[VIDEO]watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
spiderman 3[VIDEO] watched[VIDEO]Xvid.[Sound]AC3.test-01.mp4
Code: Select all
spiderman 3[Sound]noremoveee.mp4
spiderman 3[VIDEO] watched.mp4
One of my scripts helped you out? Please donate via Paypal
Re: regex help section..
thanks dear.
i fixed alls.
(\[VIDEO\]+?)(.*)(\.) > $1$3
(?=\[VIDEO\])(.*)(\.) > $2
i fixed alls.
(\[VIDEO\]+?)(.*)(\.) > $1$3
(?=\[VIDEO\])(.*)(\.) > $2
newbie or not...........