Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string functions
#1
can you attach these functions?

sort (alphabetic, numeric, date, line lengh, column, ascending, descending, random, case sensitive, case insensitive)
eliminate lines (duplicate, blank, that contains, that no contains...)
add/remove text in lines (begin, end)
#2
very interesting...[Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif][Image: transp.gif]
#3
Is it possible?
#4
You can convert string to array, process the array, and convert it to string. To convert string to array, use function tok, or simply assign string to array, as in the example with qsort.

In some cases, eg to remove empty lines, can be used str.findreplace or str.replacerx.
#5
When you desing a new function we always learn something new of QM
#6
concerning the "remove line number" how can i remove the empty last line in a string since there is only one instance of "[]".
#7
For example,

s.rtrim("[]")
s+"[]"


Forum Jump:


Users browsing this thread: 1 Guest(s)