mb_regex_set_options

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

mb_regex_set_optionsSet/Get the default options for mbregex functions

Beschreibung

mb_regex_set_options(?string $options = null): string

Sets the default options described by options for multibyte regex functions.

Parameter-Liste

options

The options to set. This is a string where each character is an option. To set a mode, the mode character must be the last one set, however there can only be set one mode but multiple options.

Regex options
Option Meaning
i Ambiguity match on
x Enables extended pattern form
m '.' matches with newlines
s '^' -> '\A', '$' -> '\Z'
p Same as both the m and s options
l Finds longest matches
n Ignores empty matches
e eval() resulting code
Regex syntax modes
Mode Meaning
j Java (Sun java.util.regex)
u GNU regex
g grep
c Emacs
r Ruby
z Perl
b POSIX Basic regex
d POSIX Extended regex

Rückgabewerte

The previous options. If options is omitted or null, it returns the string that describes the current options.

Changelog

Version Beschreibung
8.0.0 If the parameter options is given and not null, the previous options are returned. Formerly, the current options have been returned.
8.0.0 options is nullable now.

Siehe auch

  • mb_split() - Split multibyte string using regular expression
  • mb_ereg() - Regular expression match with multibyte support
  • mb_eregi() - Regular expression match ignoring case with multibyte support

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Array auslesen

Scheinbar hast du das in einem der anderen Foren nicht gelesen: Crossposting bedeutet, dass ein und dieselbe Frage in mehreren Foren oder Newsgr ...

Geschrieben von scatello am 04.10.2025 18:10:01
Forum: PHP Developer Forum
Array auslesen

Du bist das Problem. Crosspostings werden in Foren grundsätzlich nicht gerne gesehen. Das habe ich ja verstanden, auch wenn ich das nicht vers ...

Geschrieben von Psygonis am 04.10.2025 17:34:39
Forum: PHP Developer Forum
Array auslesen

Was hast Du für ein Problem? Du bist das Problem. Crosspostings werden in Foren grundsätzlich nicht gerne gesehen.

Geschrieben von scatello am 04.10.2025 16:46:48
Forum: PHP Developer Forum
db Abfrage mit mehreren ids im WHERE

Moin. Wie die Fehlermeldung schon sagt, ist id "ambiguous" -> mehrdeutig. Weil "id" in tabelle1 und tabelle2 vorkommt. Im where einfach id durch ...

Geschrieben von MichaelKre am 04.10.2025 15:21:00
Forum: PHP Developer Forum