Loading ...
Sorry, an error occurred while loading the content.

IfMatch problem

Expand Messages
  • dvdwriters12
    Im having problems with this (NT 4.95): ^!set %price%=^$GetClipboard$ ^!Set %price%=^$StrReplace( , ; ; ^%price% ;0;0)$ ^!Set
    Message 1 of 2 , Sep 20, 2006
    • 0 Attachment
      Im having problems with this (NT 4.95):

      ^!set %price%=^$GetClipboard$

      ^!Set %price%=^$StrReplace(",";"";"^%price%";0;0)$
      ^!Set %price%=^$StrReplace("£";"";"^%price%";0;0)$
      ^!set %price%=^$StrTrim("^%price%")$

      ^!IfMatch "\d*\.?\d*" "^%price%" Next else End

      Try it on:

      100 then on £50,000.45

      The ifmatch works if you leave the middle 3 lines out but if you put
      them in it wont work.. why is there a blank space being introduced
      during the strreplace?
    Your message has been successfully submitted and would be delivered to recipients shortly.