Personal Video Database

English => Development => Topic started by: meriator on September 03, 2008, 06:25:26 am

Title: StringReplace - RegEX ?
Post by: meriator 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
Title: Re: StringReplace - RegEX ?
Post by: nostra 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.

Title: Re: StringReplace - RegEX ?
Post by: meriator on October 04, 2008, 01:55:07 am
hi nostra

you've got mail  ;)
Title: Re: StringReplace - RegEX ?
Post by: nostra on October 04, 2008, 01:57:05 am
Thanks, I'll create a small 0.9.8 update next week with you plugin included.