string replace of \ Backslash

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mzingy
    Junior Member
    • Sep 2021
    • 11

    string replace of \ Backslash

    I tried to use this formula, but it didn't work.



    1- title = string\replace(title, "", "-");
    2 - title = string\replace(title, '\', '-');
    3- title = string\replace(title, "\\\\/", "-");


    How i can replace \ Backslash with -

  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    We have rules in bug reports category. It's a sticky post saying to post only after reading rules.

    Escaping is not supported currently.

    Workaround:

    Code:
    $backslash = string\replace("\dummy", "dummy", "");
    
    $test = string\replace($test, $backslash, "-");​
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • mzingy
      Junior Member
      • Sep 2021
      • 11

      #3
      Thank you in the first

      I will take care of that next time

      Comment

      Working...