Title: Problem with multi-lines
Last modified: March 29, 2018

---

# Problem with multi-lines

 *  [redstonefuture](https://wordpress.org/support/users/redstonefuture/)
 * (@redstonefuture)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/problem-with-multi-lines/)
 * Hello. I have problems to replace a search-text with more than one line. What
   I must search for my example? I would like remove all “data Style”-Definition
   from the content-side:
 *     ```
       <style>
       .dataStyle{
         display: inline-block;
         text-align: center;
         box-shadow: 0px 0px 10px silver;
         border-color: #adadad;
         width: 290px;
         margin-right: 30px;
       }
       </style> 
       ```
   
    -  This topic was modified 8 years, 2 months ago by [redstonefuture](https://wordpress.org/support/users/redstonefuture/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Dane Morgan](https://wordpress.org/support/users/danemorgan/)
 * (@danemorgan)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/problem-with-multi-lines/#post-10524625)
 * Try `.dataStyle{[^}]*}\n` at your own risk.
 *  [KAPman](https://wordpress.org/support/users/kapman/)
 * (@kapman)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/problem-with-multi-lines/#post-10897444)
 * \R finds ONE line break
    \R with dot-all ticked, finds multiple line breaks
 * For example, /Duration(.*)\R(.*)Bergerac/ finds adjacent pages that have “Duration”
   on a page followed by “Bergerac” on the next page.
 * However, /Duration(.*)\R(.*)Bergerac/ finds all pages that have “Duration” followed
   by “Bergerac” when dot-all is ticked.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with multi-lines’ is closed to new replies.

 * ![](https://ps.w.org/search-regex/assets/icon-256x256.jpg?rev=1030025)
 * [Search Regex](https://wordpress.org/plugins/search-regex/)
 * [Support Threads](https://wordpress.org/support/plugin/search-regex/)
 * [Active Topics](https://wordpress.org/support/plugin/search-regex/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-regex/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-regex/reviews/)

## Tags

 * [regex](https://wordpress.org/support/topic-tag/regex/)

 * 2 replies
 * 3 participants
 * Last reply from: [KAPman](https://wordpress.org/support/users/kapman/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/problem-with-multi-lines/#post-10897444)
 * Status: not resolved