0
votes

Hey Guys is it possible to use an Regex with typoscript??

I exactly need it at the baseURL.

f.e. baseURL = http://example.com/ remove last slash (http://example.com)

Thanks in advance!!

1

1 Answers

1
votes

You could do it with stdWrap.substring if config.baseURL has stdWrap. But it has not. And you should not remove the last slash at config.baseURL.

If you have stdWrap, you can use substring

  10 = TEXT
  10.value = http://example.com/
  10.stdWrap.substring = 0,-1

Replacement via regular expression is implementent since TYPO3 4.6 see TSref