LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Replace only exact match

    Employee
    Posted 03-15-2018 14:26

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: mw9286

    Hello

    I have tried the following codes and I am not getting the results I need. I have two different input HSIA75 & HSIA75x20 and both value are being update with the function(s) listed below. I only want to change the HSIA75 value.

    How do I accomplish this task?

    g = Speed.regexSubstitute("HSIA75","75") emit * override emit OMS_SPEED=g
    g = Speed.replace("HSIA75","75") emit * override emit OMS_SPEED=g

    Thank you.


  • 2.  RE: Replace only exact match

    Employee
    Posted 03-15-2018 15:01

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    Try this:

    g = Speed.regexSubstitute("HSIA75$","75")

    The dollar sign (should) indicate the end of the field.