== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/lib3/src/Netcarver/Textile/Parser.php on line 2181.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/lib3/src/Netcarver/Textile/Parser.php on line 2181.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 164.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 164.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 164.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Warning: Undefined array key "comment" in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 180.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 180.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/lib3/src/Netcarver/Textile/Parser.php on line 2181.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 164.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 164.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 164.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Warning: Undefined array key "html_nugget" in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 180.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/serendipity_event_textile.php on line 180.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Notice: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_textile/lib3/src/Netcarver/Textile/Parser.php on line 2181.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Warning: Undefined array key "ep_disable_markup_serendipity_event_imageselectorplus:34ba0343cf0d7f01a68354358af1be85" in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php on line 594.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Warning: Undefined array key "ep_disable_markup_serendipity_event_imageselectorplus:34ba0343cf0d7f01a68354358af1be85" in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php on line 594.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

Bernds Rappelkiste | Einträge für Dezember 2023 Skip to content

[Notepad++] Text suchen und ganze Zeilen löschen

Ich hatte heute die Problemstellung, dass ich aus ca. 50 Dateien einen Text suchen und die gesamte Zeile löschen wollte.

Grundsätzlich geht das mit NPP sehr einfach, da man im “Suchen & Ersetzen”-Dialog auch mehrere Dateien/Ordner in einem Schwung bearbeiten kann.

Mein erster Versuch war, den folgenden Suchstring (Regulärer Ausdruck) gegen leer zu ersetzen, allerdings bleibt dann eben die leere Zeile in der Datei erhalten
^(#4=IFCAPPLICATION(.*);|#5=IFCOWNERHISTORY(.*);)$

Der Trick ist jedoch – die Lösung fand ich auf schabau.eu – das Zeilenende nicht mit $ zu definieren, sondern mit \r\n
^(#4=IFCAPPLICATION(.*);|#5=IFCOWNERHISTORY(.*);)\r\n
Damit verschwindet dann auch die leere Zeile vollständig, da der Zeilenumbruch mit gesucht und gelöst wird.

Zwei Dinge sind zu beachten:

  • \r\n gilt nur für Windows, unter Linux muss \r ohne das \n genutzt werden. Wäre ja sonst auch zu einfach. wink
  • der Haken bei “. findet \r und \n” muss deaktiviert sein, da bei Regexp sonst mehrzeilig gesucht wird
== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Warning: Undefined variable $headcss in /var/www/virtual/bauigel/bernd.distler.ws/plugins/serendipity_event_lightbox/serendipity_event_lightbox.php on line 226.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.

== ERROR-REPORT (BETA/ALPHA-BUILDS) ==

Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/bauigel/bernd.distler.ws/include/compat.inc.php:207) in Unknown on line 0.
For more details set $serendipity['production'] = 'debug' in serendipity_config_local.inc.php to receive a stack-trace.