jamesp0tter
Programmer
well, i'm kind of starting in delphi... (1 month +/-)
i have some code that allows me to search a memo for some string, select it if found and copy it to other memo.
like:
[memo1.lines]
this is line one ehe
this is line two ehe
[/]
so, the only thing that changes is the 'one' / 'two'..
now imagine that that 'one' can be anything as well as the 'two' and so on... how do i select that string ? like:
[memo1.lines]
this is something that changes -» <select and copy this> «- and it ends here
[/]
any help ?
in php it would be like this:
$bla = preg_replace("'starts here (.*?) ends here.'","\$1",$ble);
just to help u understand if u code php :]
TIA !
i have some code that allows me to search a memo for some string, select it if found and copy it to other memo.
like:
[memo1.lines]
this is line one ehe
this is line two ehe
[/]
so, the only thing that changes is the 'one' / 'two'..
now imagine that that 'one' can be anything as well as the 'two' and so on... how do i select that string ? like:
[memo1.lines]
this is something that changes -» <select and copy this> «- and it ends here
[/]
any help ?
in php it would be like this:
$bla = preg_replace("'starts here (.*?) ends here.'","\$1",$ble);
just to help u understand if u code php :]
TIA !