AnsweredAssumed Answered

count "slash" and cut after that --> reg expr.

Question asked by murat.leylek on Mar 21, 2015
Latest reply on Mar 24, 2015 by akrasheninnikov

Hi All,

 

i have a question.

I want to count the slashes within a field and cut the Input Text after that.

I tried to use the "regular expression" action, but i dont know how to use the Regular Expression Language (I understood that the action uses the Microsoft .NET regular expression syntax).

 

e.g. input text

http://xxx.yyy.zz/aaa/bbb/123/456/567/allitems.aspx

 

in my case, i need the string "http://xxx.yyy.zz/aaa/bbb" (without the last slash)

 

Can anyone help me?

 

 

Greetings

Outcomes