Jump to content
Sign in to follow this  
LoneWolf_2106

String sorting - Date and time

Recommended Posts

Hi everybody,

i have a question related to strings items in an Array and sorting. Maybe someone can advice me how to solve the issue.

I have an Array of strings, every item of the Array is as following:

  • INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection] 
  • INFO [07.06.2017 08:55:44] [main] MDU5 - Ver 5.1x

I want to sort the item in the array by date and time, is there any function which allows me to sort by date/time?

Thanks in advance

Share this post


Link to post
Share on other sites

Basic example, although someone that is good with RegEx could write something better.

#include <Array.au3>
Local $aInfo[2] = ['INFO [07.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]', 'INFO [07.06.2017 08:55:44] [main] MDU5 - Ver 5.1x']
Local $aModified[UBound($aInfo)][2], $sDate
For $i = 0 To UBound($aInfo) - 1
    $sDate = StringMid($aInfo[$i], StringInStr($aInfo[$i], "INFO [") + StringLen("INFO ["), 19)
    $aModified[$i][0] = StringFormat("%04i/%02i/%02i", StringMid($sDate, 7, 4), StringMid($sDate, 4, 2), StringLeft($sDate, 2)) & StringRight($sDate, 9)
    $aModified[$i][1] = $aInfo[$i]
Next
_ArraySort($aModified, 0, 0, 0, 0)
_ArrayDisplay($aModified)

 

Share this post


Link to post
Share on other sites

another way.

 

#include <Array.au3>
Local $aArray = ["INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]", _
        "INFO [07.06.2017 08:55:44] [main] MDU5 - Ver 5.1x", _
        "INFO [07.06.2017 12:55:11] [main] Dummy String1", _
        "INFO [07.06.2016 09:55:11] [main] Dummy String2", _
        "INFO [07.06.2017 09:55:12] [main] Dummy String3", _
        "INFO [07.06.2017 09:55:11] [main] Dummy String4"]


_ArrayDisplay($aArray, "No sorted")
_Sort($aArray)
_ArrayDisplay($aArray, "Sorted")

Func _Sort(ByRef $aArray)
    For $i = UBound($aArray) - 1 To 1 Step -1
        For $j = 1 To $i
            If _GetNumber($aArray[$j - 1]) > _GetNumber($aArray[$j]) Then
                $temp = $aArray[$j - 1]
                $aArray[$j - 1] = $aArray[$j]
                $aArray[$j] = $temp
            EndIf
        Next
    Next
    Return $aArray
EndFunc   ;==>_Sort


Func _GetNumber($String)
    Return Number(StringRegExpReplace(StringMid($String, 7, 19), '(\d{2})\.(\d{2})\.(\d{4})', "$3$2$1")) ;mikell's regexp
EndFunc   ;==>_GetNumber

Saludos

Edited by Danyfirex

Share this post


Link to post
Share on other sites

So assuming you have that portion of the string, since that's been done twice now,  here is a way with datediff

#include <Date.au3>
#include<array.au3>

local $Arr[5]
$Arr[0] = "13.06.2017 11:48:01"
$Arr[1] = "07.06.2017 08:55:44"
$Arr[2] = "05.06.2017 08:55:40"
$Arr[3] = "12.06.2017 08:55:43"
$Arr[4] = "07.06.2017 08:55:42"

For $i = 0 to ubound($Arr) - 2

    If stringleft( _DateDiff("s" , stringmid($Arr[$i] , 7 , 4) & "/" & stringmid($Arr[$i] , 4 , 2) & "/" &  stringmid($Arr[$i] , 1 , 2) & " " & stringright($Arr[$i] , 8) , stringmid($Arr[$i + 1] , 7 , 4) & "/" & stringmid($Arr[$i + 1] , 4 , 2) & "/" &  stringmid($Arr[$i + 1] , 1 , 2) & " " & stringright($Arr[$i + 1] , 8)) , 1) = "-" Then
        _ArraySwap($Arr , $i , $i + 1)
        $i = -1
    EndIf

Next

_ArrayDisplay($Arr)

 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

And another way ... sooo classic   :)

#include <Array.au3>

Local $aArray[6] = ["INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]", _
        "INFO [07.06.2018 08:55:44] [main] MDU5 - Ver 5.1x", _
        "INFO [07.06.2017 12:55:11] [main] Dummy String1", _
        "INFO [07.06.2016 09:55:11] [main] Dummy String2", _
        "INFO [07.06.2017 09:55:12] [main] Dummy String3", _
        "INFO [07.06.2017 09:55:11] [main] Dummy String4"]

_ArrayDisplay($aArray, "No sorted")
_Sort($aArray)
_ArrayDisplay($aArray, "Sorted")


Func _Sort(ByRef $aArray)
     _ArrayColInsert($aArray, 1)
    For $i = 0 To UBound($aArray) - 1
       $aArray[$i][1] = StringRegExpReplace($aArray[$i][0], '(\d{2})\.(\d{2})\.(\d{4})', "$3$2$1")
    Next
    _ArraySort($aArray, 0, 0, 0, 1)
    _ArrayColDelete($aArray, 1)
EndFunc   ;==>_Sort

 

Share this post


Link to post
Share on other sites

This solution worked greatly. Many thanks.

 

I didn't try yet the other solutions

 

 

On ‎23‎.‎06‎.‎2017 at 6:39 PM, Danyfirex said:

another way.

 

#include <Array.au3>
Local $aArray = ["INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]", _
        "INFO [07.06.2017 08:55:44] [main] MDU5 - Ver 5.1x", _
        "INFO [07.06.2017 12:55:11] [main] Dummy String1", _
        "INFO [07.06.2016 09:55:11] [main] Dummy String2", _
        "INFO [07.06.2017 09:55:12] [main] Dummy String3", _
        "INFO [07.06.2017 09:55:11] [main] Dummy String4"]


_ArrayDisplay($aArray, "No sorted")
_Sort($aArray)
_ArrayDisplay($aArray, "Sorted")

Func _Sort(ByRef $aArray)
    For $i = UBound($aArray) - 1 To 1 Step -1
        For $j = 1 To $i
            If _GetNumber($aArray[$j - 1]) > _GetNumber($aArray[$j]) Then
                $temp = $aArray[$j - 1]
                $aArray[$j - 1] = $aArray[$j]
                $aArray[$j] = $temp
            EndIf
        Next
    Next
    Return $aArray
EndFunc   ;==>_Sort


Func _GetNumber($String)
    Return Number(StringRegExpReplace(StringMid($String, 7, 19), "\D", ""))
EndFunc   ;==>_GetNumber

Saludos

 

Share this post


Link to post
Share on other sites

thank you mikell :-P Fixed first reply.

 

 

Saludos

Edited by Danyfirex

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites
1 hour ago, Subz said:

Can you post the more complex file?

 

Unfortunately i cannot post my original file, because it contains many entries with sensitive data. Anyway there are several entries like the one i posted before. The log content is just bigger.

 

As for now i am using this solution and i will test it for a while:

 

On ‎23‎.‎06‎.‎2017 at 9:49 PM, mikell said:

And another way ... sooo classic   :)

#include <Array.au3>

Local $aArray[6] = ["INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]", _
        "INFO [07.06.2018 08:55:44] [main] MDU5 - Ver 5.1x", _
        "INFO [07.06.2017 12:55:11] [main] Dummy String1", _
        "INFO [07.06.2016 09:55:11] [main] Dummy String2", _
        "INFO [07.06.2017 09:55:12] [main] Dummy String3", _
        "INFO [07.06.2017 09:55:11] [main] Dummy String4"]

_ArrayDisplay($aArray, "No sorted")
_Sort($aArray)
_ArrayDisplay($aArray, "Sorted")


Func _Sort(ByRef $aArray)
     _ArrayColInsert($aArray, 1)
    For $i = 0 To UBound($aArray) - 1
       $aArray[$i][1] = StringRegExpReplace($aArray[$i][0], '(\d{2})\.(\d{2})\.(\d{4})', "$3$2$1")
    Next
    _ArraySort($aArray, 0, 0, 0, 1)
    _ArrayColDelete($aArray, 1)
EndFunc   ;==>_Sort

 

 

I have just a problem, i have a monodimensional Array in Input and it is basically "converted" to bidimensional. How can i use the array? I mean, how can i access the array items?

 

Share this post


Link to post
Share on other sites

Basic example:

#include <Array.au3>

Global $aOneDimension[3] = [2, "Row1", "Row2"]
_ArrayDisplay($aOneDimension)
For $i = 1 To $aOneDimension[0]
    MsgBox(4096, "One Dimension Array", $aOneDimension[$i])
Next

Global $aTwoDimension[3][3] = [["Row0 Col0", "Row0 Col1", "Row0 Col2"],["Row1 Col0", "Row1 Col1", "Row1 Col2"], ["Row2 Col0", "Row2 Col1", "Row2 Col2"]]
_ArrayDisplay($aTwoDimension)
For $i = 0 To UBound($aTwoDimension) - 1
    MsgBox(4096, "Two Dimension Array", "Row" & $i & @CRLF & $aTwoDimension[$i][0] & @TAB & $aTwoDimension[$i][1] & @TAB & $aTwoDimension[$i][2])
Next

 

Share this post


Link to post
Share on other sites

Hello. Here is my script fixed.

 

#include <Array.au3>

Local $aArray[6] = ["INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]", _
        "INFO [07.06.2018 08:55:44] [main] MDU5 - Ver 5.1x", _
        "INFO [07.06.2017 12:55:11] [main] Dummy String1", _
        "INFO [07.06.2016 09:55:11] [main] Dummy String2", _
        "INFO [07.06.2017 09:55:12] [main] Dummy String3", _
        "INFO [07.06.2017 09:55:11] [main] Dummy String4"]


_ArrayDisplay($aArray, "No sorted")
_Sort($aArray)
_ArrayDisplay($aArray, "Sorted")



Func _Sort(ByRef $aArray)
    For $i = UBound($aArray) - 1 To 1 Step -1
        For $j = 1 To $i
            If _GetNumber($aArray[$j - 1]) > _GetNumber($aArray[$j]) Then
                $temp = $aArray[$j - 1]
                $aArray[$j - 1] = $aArray[$j]
                $aArray[$j] = $temp
            EndIf
        Next
    Next
    Return $aArray
EndFunc   ;==>_Sort


Func _GetNumber($String)
    Local $iNumber=Number(StringRegExpReplace(StringRegExpReplace(StringMid($String, 7, 19), '(\d{2})\.(\d{2})\.(\d{4})', "$3$2$1"),"\D","")) ;mikell's regexp plus something
    Return $iNumber
EndFunc   ;==>_GetNumber

 

Saludos

Share this post


Link to post
Share on other sites
#include <Array.au3>
#include <Date.au3>

Local $aArray[6] = ["INFO [13.06.2017 11:48:01] [Thread-13] [ConGenImpUsb -> waitForConnection]", _
"INFO [07.06.2018 08:55:44] [main] MDU5 - Ver 5.1x", _
"INFO [07.06.2017 12:55:11] [main] Dummy String1", _
"INFO [07.06.2016 09:55:11] [main] Dummy String2", _
"INFO [07.06.2017 09:55:12] [main] Dummy String3", _
"INFO [07.06.2017 09:55:11] [main] Dummy String4"]


For $i = 0 to ubound($aArray) - 2

    If stringleft( _DateDiff("s" , stringmid(StringRegExp($aArray[$i] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 7 , 4) & _
        "/" & stringmid(StringRegExp($aArray[$i] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 4 , 2) & _
        "/" & stringmid(StringRegExp($aArray[$i] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 1 , 2) & _
        " " & stringright(StringRegExp($aArray[$i] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 8) , stringmid(StringRegExp($aArray[$i + 1] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 7 , 4) & _
        "/" & stringmid(StringRegExp($aArray[$i + 1] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 4 , 2) & _
        "/" & stringmid(StringRegExp($aArray[$i + 1] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 1 , 2) & " " & stringright(StringRegExp($aArray[$i+1] , '(\d{2}\.\d{2}\.\d{4}.\d{2}:\d{2}:\d{2})' , 3)[0] , 8)) , 1) = "-" Then

            _ArraySwap($aArray , $i , $i + 1)
            $i = -1
    EndIf

Next

_ArrayDisplay($aArray)

 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Colduction
      Hi dear friends!, i'm sorry for creating a new thread (a new problem), i have over than 9 lists that i want to combine them to be this (in this example, there are 3 test files):


      I've written a little code for splitting main information, but i really confused how to make results as "Output.txt", here is that code:
       
      $sRegex_1 = StringRegExp(FileRead("1.txt"), '(?s:(?<=\=\=\r\n)(.*?)(?=\r\n\=\=))', 3) $sRegex_2 = StringRegExp(FileRead("2.txt"), '(?s:(?<=\=\=\r\n)(.*?)(?=\r\n\=\=))', 3) $sRegex_3 = StringRegExp(FileRead("3.txt"), '(?s:(?<=\=\=\r\n)(.*?)(?=\r\n\=\=))', 3) For $i = 0 To UBound($sRegex_1) - 1 ConsoleWrite($sRegex_1[$i] & @CRLF) For $j = 0 To UBound($sRegex_2) - 1 ConsoleWrite($sRegex_2[$j] & @CRLF) For $k = 0 To UBound($sRegex_3) - 1 ConsoleWrite($sRegex_3[$k] & @CRLF) Next Next Next  
    • By nacerbaaziz
      hello evrybody
      here is an example about how to split your texts using a delimiter with the ability to select how much of delimiters shows in each colum  with $i_number
      e.g
      you have a long text and you want to split it in an array
      that evry colum have a number (n) of lines
      i made a function that do that for you
      just call it with a three params
      $s_text
      your text
      $i_number
      the number that you want to put in each col
      $s_siparator
      the siparator
      default is "|"
      here is the function with example
      i hope that it will be useful for you
       
      ****
       
      #include <Array.au3> $s_txt = "some text1some text2|some text3|some text4|some text5|some text6" $array = splitText($s_txt, 2) _ArrayDisplay($array) Func splitText($s_text, $i_number, $s_siparator = "|") Local $a_TXT = StringSplit($s_text, $s_siparator) Local $a_Return[$a_TXT[0] + 1] If ($a_TXT[0] <= $i_number) Or ($i_number <= 0) Then ReDim $a_Return[2] $a_Return[0] = 1 $a_Return[1] = $s_text Return $a_Return EndIf Local $i_Processed = 1, $i_arrayProcessed = 1 Do For $i = $i_Processed To ($i_Processed + $i_number) - 1 If ($a_TXT[0] < $i) Then ExitLoop If Not ($a_Return[$i_arrayProcessed]) Then $a_Return[$i_arrayProcessed] = $a_TXT[$i] Else $a_Return[$i_arrayProcessed] &= $s_siparator & $a_TXT[$i] EndIf $i_Processed += 1 Next $i_arrayProcessed += 1 Until ($a_TXT[0] < $i_Processed) ReDim $a_Return[$i_arrayProcessed] $a_Return[0] = $i_arrayProcessed - 1 Return $a_Return EndFunc ;==>splitText
      accept my greetings
      thanks to
      @Dan_555
      for his notes
       
    • By MesterPerfect
      good morning
      this is the first post here in the autoit forums
      i hope that you can help me in my problem
      i have a JSON encoded
      it a map of my forums
      where i want to make a treeview that have the same type of map
      e.g
      a system (as category)
      windows (as sub category)
      software (as an child item in the windows category)
      .....
      i don't know how to do that
      so, i know that i can do that using the json functions
      but i need your help about how we can do it as the type that i told you
      by the way i need to put the sub info for each item in an array that give me the ability to manage my items
      e.g
      can post thread
      can reply
      message cound ...
      you just give me a small example and i can continue.
      am sorry if this against the rules of the forum.
      but i realy searched a lot but i couldn't
      i hope some one give me the way.
      thank you very much in advance
       
      here is the link of json forum
      https://www.autoitscript.com/forum/topic/148114-a-non-strict-json-udf-jsmn/
      and here is my encoded json file
       
      { "tree_map": { "0": [ 1, 5, 6, 7 ], "1": [ 2 ], "2": [ 4 ], "5": [ 3 ], "6": [ 8 ], "8": [ 9, 10 ] }, "nodes": [ { "breadcrumbs": [], "description": "", "display_in_list": true, "display_order": 1, "node_id": 1, "node_name": null, "node_type_id": "Category", "parent_node_id": 0, "title": "Main category", "type_data": {} }, { "breadcrumbs": [ { "node_id": 1, "title": "Main category", "node_type_id": "Category" } ], "description": "", "display_in_list": true, "display_order": 1, "node_id": 2, "node_name": null, "node_type_id": "Forum", "parent_node_id": 1, "title": "Main forum", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [ { "node_id": 1, "title": "Main category", "node_type_id": "Category" }, { "node_id": 2, "title": "Main forum", "node_type_id": "Forum" } ], "description": "", "display_in_list": true, "display_order": 1, "node_id": 4, "node_name": null, "node_type_id": "Forum", "parent_node_id": 2, "title": "my forums1", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [], "description": "", "display_in_list": true, "display_order": 2, "node_id": 5, "node_name": null, "node_type_id": "Category", "parent_node_id": 0, "title": "Perfect", "type_data": {} }, { "breadcrumbs": [ { "node_id": 5, "title": "Perfect", "node_type_id": "Category" } ], "description": "", "display_in_list": true, "display_order": 2, "node_id": 3, "node_name": null, "node_type_id": "Forum", "parent_node_id": 5, "title": "ahmed", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [], "description": "", "display_in_list": true, "display_order": 3, "node_id": 6, "node_name": null, "node_type_id": "Forum", "parent_node_id": 0, "title": "autoit", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [ { "node_id": 6, "title": "autoit", "node_type_id": "Forum" } ], "description": "", "display_in_list": true, "display_order": 3, "node_id": 8, "node_name": null, "node_type_id": "Forum", "parent_node_id": 6, "title": "examples", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [ { "node_id": 6, "title": "autoit", "node_type_id": "Forum" }, { "node_id": 8, "title": "examples", "node_type_id": "Forum" } ], "description": "", "display_in_list": true, "display_order": 3, "node_id": 9, "node_name": null, "node_type_id": "Forum", "parent_node_id": 8, "title": "GUI", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [ { "node_id": 6, "title": "autoit", "node_type_id": "Forum" }, { "node_id": 8, "title": "examples", "node_type_id": "Forum" } ], "description": "", "display_in_list": true, "display_order": 31, "node_id": 10, "node_name": null, "node_type_id": "Forum", "parent_node_id": 8, "title": "windowEX", "type_data": { "allow_poll": true, "allow_posting": true, "can_create_thread": true, "can_upload_attachment": true, "discussion_count": 0, "last_post_date": 0, "last_post_id": 0, "last_post_username": "", "last_thread_id": 0, "last_thread_prefix_id": 0, "last_thread_title": "", "message_count": 0, "min_tags": 0, "require_prefix": false } }, { "breadcrumbs": [], "description": "", "display_in_list": true, "display_order": 4, "node_id": 7, "node_name": null, "node_type_id": "Category", "parent_node_id": 0, "title": "vbs", "type_data": {} } ] }  
    • By cruisepandey
      Hi, 
      I have a string like this : 
      Global $Msga = "urrent directory is /send.  (Submission of file with log number 29381077284 is confirmed)";
      I want to extract the number 29381077284  from the string. I did StringSplit to split based on "(" and then use space to reach there, But it's not a good choice. 
      Can anyone help me with regular expression to find the number from String using AutoIT. TIA
    • By DannyJ
      I have this example string:
       
      2020-06-08 09:23:33 : abcdefghifjklm How to trim just the right part? Or how to trim this text right to left?
      I want to trim this string right to left until ' : '.
      In ohter words: I need the 'abcdefghifklm' text.
      I have tried StringTrimRight, but that requires 
      The number of characters to trim. Unfortunately StringSplit trims the left part of the strings.
       
       
×
×
  • Create New...