How to search using regular expression in Xcode

Issue #698

Search NSLayoutConstraint calls that involves bottomAnchor

1
(NSLayoutConstraint(.*[\r\n])*).+?(?=bottomAnchor)
1
2
3
4
5
6
NSLayoutConstraint.activate([
child.leadingAnchor.constraint(equalTo: parent.safeAreaLayoutGuide.leadingAnchor),
child.trailingAnchor.constraint(equalTo: parent.safeAreaLayoutGuide.trailingAnchor),
child.topAnchor.constraint(equalTo: parent.safeAreaLayoutGuide.topAnchor),
child.bottomAnchor.constraint(equalTo: parent.safeAreaLayoutGuide.bottomAnchor)
])

Comments