$regsubex marker suggestion - 14/07/07 08:34 PM
the other day i was trying to make something to remove duplicate letters in words
e.g. hello would turn to helo, elle would turn into el etc.
however i was having to do it a very long way. my suggestions is the \p special marker, which returns "previously substituted text".
example:
$regsubex(elle,/(.)/g,$iif(\1 !isin \p,\1))
would return el
$regsubex(extreme,/(.)/g,$iif(\1 !isin \p,\1))
would return extrm
i dont know whether \p is already in use in regex, if not, antoher letter. i have a feeling this could be very useful. thanks for ur time, hope this gets added!
e.g. hello would turn to helo, elle would turn into el etc.
however i was having to do it a very long way. my suggestions is the \p special marker, which returns "previously substituted text".
example:
$regsubex(elle,/(.)/g,$iif(\1 !isin \p,\1))
would return el
$regsubex(extreme,/(.)/g,$iif(\1 !isin \p,\1))
would return extrm
i dont know whether \p is already in use in regex, if not, antoher letter. i have a feeling this could be very useful. thanks for ur time, hope this gets added!