Unix and Linux Discussions Tagged with replacement |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
6 |
3,375 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,212 |
Shell Programming and Scripting |
|
|
|
10 |
3,468 |
Shell Programming and Scripting |
|
|
|
4 |
2,726 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
1,317 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
3,497 |
Shell Programming and Scripting |
|
|
|
4 |
2,795 |
Shell Programming and Scripting |
|
|
|
1 |
3,237 |
Hardware |
|
|
|
0 |
2,767 |
Solaris BigAdmin RSS |
|
|
|
1 |
2,767 |
Shell Programming and Scripting |
|
|
|
1 |
10,489 |
UNIX and Linux Applications |
|
|
|
4 |
1,787 |
Shell Programming and Scripting |
|
|
|
9 |
2,847 |
Shell Programming and Scripting |
|
|
|
1 |
2,356 |
Shell Programming and Scripting |
|
|
|
9 |
18,813 |
Solaris |
|
|
|
4 |
8,532 |
Solaris |
|
|
|
12 |
5,572 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,593 |
Shell Programming and Scripting |
|
|
|
0 |
1,033 |
UNIX and Linux RSS News |
|
|
|
3 |
6,056 |
Red Hat |
|
|
|
1 |
2,907 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
2,937 |
Shell Programming and Scripting |
|
|
|
4 |
5,429 |
Shell Programming and Scripting |
|
|
|
21 |
11,816 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,378 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,840 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,339 |
Programming |
|
|
|
2 |
4,346 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,008 |
UNIX for Dummies Questions & Answers |
MB_EREG_REPLACE(3) 1 MB_EREG_REPLACE(3)
mb_ereg_replace - Replace regular expression with multibyte support
SYNOPSIS
string mb_ereg_replace (string $pattern, string $replacement, string $string, [string $option = "msr"])
DESCRIPTION
Scans $string for matches to $pattern, then replaces the matched text with $replacement
PARAMETERS
o $pattern
- The regular expression pattern. Multibyte characters may be used in $pattern.
o $replacement
- The replacement text.
o $string
- The string being checked.
o $option
- Matching condition can be set by $option parameter. If i is specified for this parameter, the case will be ignored. If x is
specified, white space will be ignored. If m is specified, match will be executed in multiline mode and line break will be
included in '.'. If p is specified, match will be executed in POSIX mode, line break will be considered as normal character. If e
is specified, $replacement string will be evaluated as PHP expression.
RETURN VALUES
The resultant string on success, or FALSE on error.
NOTES
Note
The internal encoding or the character encoding specified by mb_regex_encoding(3) will be used as the character encoding for this
function.
Warning
Never use the e modifier when working on untrusted input. No automatic escaping will happen (as known from preg_replace(3)). Not
taking care of this will most likely create remote code execution vulnerabilities in your application.
SEE ALSO
mb_regex_encoding(3), mb_eregi_replace(3).
PHP Documentation Group MB_EREG_REPLACE(3)