Search code examples
What does \W+ mean in a regular expression?...


phpregexpreg-replacemetacharacters

Read More
Replace Javascript concatenation expression in a string with <em> tag...


phpregexpreg-replace

Read More
Inject <br> between numbered sentences ending in a dot, but not after dots preceded by a numbe...


phpregexpreg-replacesentence

Read More
Does preg_replace() modify by reference or return a value?...


phpregexpreg-replace

Read More
Replace a double curly braced placeholder with a method call as the replacement parameter of preg_re...


phpregexcallbackpreg-replaceplaceholder

Read More
What's the difference between \1 versus $1 in the second paramter of preg_replace()?...


phpregexpreg-replacebackreferencecapture-group

Read More
Why are all backreferences in replacement string of preg_replace() empty?...


phpregexpreg-replacebackreferencecapture-group

Read More
Convert url string wrapped in BBcode-style [url] and [/url] tags into an HTML hyperlink...


phpregexhyperlinkpreg-replacebbcode

Read More
Convert pairs of square brace placeholders into an HTML hyperlink...


phphyperlinkpreg-replaceplaceholdersquare-bracket

Read More
Replace @mentions with an HTML hyperlink...


phpregexhyperlinkpreg-replacemention

Read More
Regex containing forward slash creates Warning...


phpregexescapingpreg-replacedelimiter

Read More
Insert a dot then a space after a lowercase letter which is immediately followed by an uppercase let...


phpregexpreg-replace

Read More
Replace one or more non-alphanumeric characters with underscores...


phpregexpreg-replacealphanumericsnakecasing

Read More
Convert URLs to hyperlinks in HTML without replacing src attribute values...


phpregexhyperlinkhtml-parsingpreg-replace

Read More
How to access capture groups in the replacement parameter of preg_replace()?...


phpregexpreg-replacebackreferencecapture-group

Read More
Using preg_replace to modify square brace placeholders in a string is incorrectly matching multiple ...


phppreg-replaceshortcodeplaceholderquantifiers

Read More
Using preg_replace() to convert alphanumeric strings from camelCase to kebab-case...


phpregexpreg-replacecamelcasingkebab-case

Read More
Replace matched uppercase letter with its lowercase version (camelCase to kebab-case)...


phpregexpreg-replacecamelcasingkebab-case

Read More
Inject a comma between alphanumeric substrings and non-alphanumeric substrings...


phpregexpreg-replacealphanumericnon-alphanumeric

Read More
Isolate substring from first asterisk to second asterisk and use the first word of the match in the ...


phpregexreplacepreg-replace

Read More
Replace "@@" with "#" only if contained within "{{" and "}}"...


phpregexreplacepreg-replaceplaceholder

Read More
Parse HTML and reformat dollar amount in tag with specific class...


phpregexpreg-replacecurrency-formattingreformatting

Read More
Get string between two specific characters in a string...


phpregexpreg-replacetext-extractiontext-parsing

Read More
Remove all square brace placeholders from a string...


phpregexpreg-replaceplaceholdersquare-bracket

Read More
Get all float numbers following an @ symbol...


phpregexpreg-replacesanitizationtextmatching

Read More
Replace literal string in text if another literal string doesn't exist in the text...


phpregexreplacepreg-replacepreg-match

Read More
Get comma-separed latitude and longitude values from a larger body of text...


phpregexpreg-replacetext-extraction

Read More
Regex to match a curly braced placeholder is incorrectly matching multiple placeholders at once...


phpregexpreg-replaceregex-greedycharacter-class

Read More
Replace square brace placeholder with dynamic replacement text...


phpregexdynamicpreg-replaceplaceholder

Read More
Replace a blacklisted word even if it has extra characters between matching characters...


phpregexpreg-replacesanitizationblacklist

Read More
BackNext