Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Question: How to search for two string in different lines (accepting line breaks between them) #34

@Zodiac1978

Description

@Zodiac1978

Hi @PeterBooker - sorry for asking you such a basic question, but I can’t find a working search with line breaks on http://wpdirectory.net

I started with a basic search like this: https://wpdirectory.net/search/01EJEZ66ZANYGE43SCMVJW96EA
to find themes with the issue of checking the wrong comment_type (the change of comment_type is explained here: https://make.wordpress.org/core/2020/07/29/miscellaneous-developer-focused-changes-in-wordpress-5-5/).

All hints on stackexchange don’t work for this regex variant ...

I tried many ...

with [/s]
https://wpdirectory.net/search/01EJEVTGYD4W4VJFVYQ0RV2JNG
https://wpdirectory.net/search/01EJEW571RFRFK7J5WJWGWVJX9
https://wpdirectory.net/search/01EJEXRMBC27VKYZ4VBFZHEMPW
https://wpdirectory.net/search/01EJEX5ETGBR21NZY9SQTDF0A6

with (?ms)
https://wpdirectory.net/search/01EJEVXJE4ZCTNJD5M7QCVWB6P

with [\r|\n]
https://wpdirectory.net/search/01EJEXC1YDDFBWA6E9FDQ9P020
https://wpdirectory.net/search/01EJEXB4HQDH82E823H7374QKQ

https://wpdirectory.net/search/01EJEWER1D6T675A8C7PYJ4XDC

Any help to find the two strings which are in one file but spread on different lines is is much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions