Replace only first match using preg_replace
74027
Replace string only once with php preg_replace
53741
Why does javascript replace only first instance when using replace?
9784
How do I replace certain parts of my string?
85973
Replace a string before a certain line
1336
PHP preg_match to find multiple occurrences
141021
How can I get at the matches when using preg_replace in PHP?
116912
Regex only match if character is not included directly before desired string
82932
Selecting only the first item of an xpath result set in PHP
33065
Java equivalent to PHP's preg_replace_callback
36211
Remove the first character of a string
104174
Regex match entire words only
107884
Delete first 3 characters and last 3 characters from String PHP
61837
Can you make just part of a regex case-insensitive?
110874
(php) regexto remove comments but ignore occurances within strings
38724
Preg_replace match on word boundery and not in link
146210
A simple regex search and replacement in php for minifying/compressing javascript?
5460
How do I replace characters only on certain lines?