Remove digits from a field value

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Remove digits from a field value

  • Creator
    Topic
  • #55513
    Henry Bauer
    Participant

    I am trying to remove the digits from a field value ie, CT20170228-0044 using

    set mystring [lindex $xlateInVals 0]

    regexp {[A-Za-z]+$} $mystring field16

    set xlateOutVals

      knowing the dash may be the culprit I have split the value and used the command on just the first component CT20170228. I have scoured Clovertech for resolution and tried different iterations of the command.

      using TCL

      regexp

Viewing 2 reply threads
  • Author
    Replies
    • #85590
      Steve Williams
      Participant

      Henry,

    • #85591
      Henry Bauer
      Participant

      I found an old example I had of a regexp that worked, not what I wanted, I will work on your example.

      Thank you!

      Been searching online too.

    • #85592
      Henry Bauer
      Participant

      Worked like a charm

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,295
Replies
34,439
Topic Tags
287
Empty Topic Tags
10