thymeleaf String contains


Example

<div th:if="${#strings.contains(#httpServletRequest.requestURI, 'email')}">
    <div th:replace="fragments/email::welcome">
</div>