Regarding ReplaceStr

delphi package - madRes, madTools, madStrings, ...
Post Reply
nikk
Posts: 2
Joined: Wed Jun 22, 2005 7:21 pm

Regarding ReplaceStr

Post by nikk »

Is there something like the [length:chars] stuff in StrMatchEx:

Code: Select all

StrMatchEx  ('test123abc','test[3:0..9]abc'      )
for ReplaceStr?

ex:

Code: Select all

ReplaceStr(string, 'blah[3:0..9]', 'blah123');
thanks
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

No, I'm sorry. This is only available for the Match functions.
nikk
Posts: 2
Joined: Wed Jun 22, 2005 7:21 pm

Post by nikk »

Okay, thanks... Do you know if there is anything else I could do?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

You could try to write such an extended ReplaceStr function yourself... :)

Or you could do a search on the web. There are some freeware string units available, I think. Maybe one of those can do what you need.
Post Reply