Ad Widget

Collapse

Multiple trim operation in preprocessing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • V.N.
    Member
    • Oct 2015
    • 37

    #1

    Multiple trim operation in preprocessing

    Hi!
    I have an item which gets an event from windows server eventlog. Each event has valuable info and ending which I don't need absolutely.
    For example,
    Code:
    CryptoStorage state has switched to mounted
    
    For more information, see Help and Support Center at
    http://www.site.com/support
    I tried to trim all this trash with preproccessing but I could trim only last string "http://www.site.com/support".
    How to trim the previous one I can not understand. Maybe it possible to use regular expressions to solve the problem but I wasn't successful in that activity.
    Any help appreciated.
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Hi, V.N.
    Try Regular expression like this one:
    pattern: ^([\s\S]*)For\smore\sinformation
    output: \1
    Last edited by Semiadmin; 19-02-2019, 14:19.

    Comment

    • V.N.
      Member
      • Oct 2015
      • 37

      #3
      Thanks a lot!
      It works!

      Comment

      Working...