Author Topic: StringReplace - RegEX ?  (Read 9280 times)

0 Members and 2 Guests are viewing this topic.

Offline meriator

  • User
  • ***
  • Posts: 52
    • View Profile
StringReplace - RegEX ?
« on: September 03, 2008, 06:25:26 am »
my Question:
does the function StringReplace accept for Patterns a RegExpression ?
something like '/<(FSK:|fsk:)(.*?)(,|<)/s'
and which syntax for the RegEX is used C-like or PHP-like or orPerl-like or does Delphi has a diffrent Syntax
or is ther an other function via scripting engine that accept RegExes
it's easier to ask then trying all Night long

my Sricpt for zelluloid.de is almost finished
 
thx
cu meriator
while 1000 thanks crawling after one....they may never reach...the journey is the reward

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: StringReplace - RegEX ?
« Reply #1 on: September 03, 2008, 01:28:49 pm »
Quote
does the function StringReplace accept for Patterns a RegExpression ?
something like '/<(FSK:|fsk:)(.*?)(,|<)/s'
and which syntax for the RegEX is used C-like or PHP-like or orPerl-like or does Delphi has a diffrent Syntax
or is ther an other function via scripting engine that accept RegExes
it's easier to ask then trying all Night long

Unfortunately not. StringReplace can only replace one text string with another one, nothing more.
I'll consider adding RegExp in future versions.

Quote
my Sricpt for zelluloid.de is almost finished

Cool.

Gentlemen, you can’t fight in here! This is the War Room!

Offline meriator

  • User
  • ***
  • Posts: 52
    • View Profile
Re: StringReplace - RegEX ?
« Reply #2 on: October 04, 2008, 01:55:07 am »
hi nostra

you've got mail  ;)
while 1000 thanks crawling after one....they may never reach...the journey is the reward

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: StringReplace - RegEX ?
« Reply #3 on: October 04, 2008, 01:57:05 am »
Thanks, I'll create a small 0.9.8 update next week with you plugin included.
Gentlemen, you can’t fight in here! This is the War Room!

 

anything