<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Programming &amp; Software Q&amp;A | CollectiveSolver - Recent questions tagged php-regex</title>
<link>https://collectivesolver.com/tag/php-regex</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to match a substring within 2 square brackets using RegEx in PHP</title>
<link>https://collectivesolver.com/88315/how-to-match-a-substring-within-2-square-brackets-using-regex-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/88315/how-to-match-a-substring-within-2-square-brackets-using-regex-in-php</guid>
<pubDate>Sat, 19 Jul 2025 08:41:57 +0000</pubDate>
</item>
<item>
<title>How to extract a file name from a path, replace whitespaces, and make it lowercase using RegEx in PHP</title>
<link>https://collectivesolver.com/88150/how-to-extract-a-file-name-from-a-path-replace-whitespaces-and-make-it-lowercase-using-regex-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/88150/how-to-extract-a-file-name-from-a-path-replace-whitespaces-and-make-it-lowercase-using-regex-in-php</guid>
<pubDate>Tue, 15 Jul 2025 16:37:25 +0000</pubDate>
</item>
<item>
<title>How to convert multiple &lt;br/&gt; tags to a single &lt;br/&gt; tag using RegEx in PHP</title>
<link>https://collectivesolver.com/88108/how-to-convert-multiple-br-tags-to-a-single-br-tag-using-regex-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/88108/how-to-convert-multiple-br-tags-to-a-single-br-tag-using-regex-in-php</guid>
<pubDate>Mon, 14 Jul 2025 19:47:39 +0000</pubDate>
</item>
<item>
<title>How to match the first word after an expression in a string using RegEx with PHP</title>
<link>https://collectivesolver.com/86779/how-to-match-the-first-word-after-an-expression-in-a-string-using-regex-with-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/86779/how-to-match-the-first-word-after-an-expression-in-a-string-using-regex-with-php</guid>
<pubDate>Sun, 15 Jun 2025 09:02:09 +0000</pubDate>
</item>
<item>
<title>How to replace the characters !@#$%^*_+\= in a string using RegEx with PHP</title>
<link>https://collectivesolver.com/86649/how-to-replace-the-characters-%40%23%24%25-_-in-a-string-using-regex-with-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/86649/how-to-replace-the-characters-%40%23%24%25-_-in-a-string-using-regex-with-php</guid>
<pubDate>Wed, 11 Jun 2025 12:23:20 +0000</pubDate>
</item>
<item>
<title>How to replace consecutive characters with only one using RegEx in PHP</title>
<link>https://collectivesolver.com/86447/how-to-replace-consecutive-characters-with-only-one-using-regex-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/86447/how-to-replace-consecutive-characters-with-only-one-using-regex-in-php</guid>
<pubDate>Fri, 06 Jun 2025 16:36:46 +0000</pubDate>
</item>
<item>
<title>How to check if a string contains only letters, numbers, underscores and dashes in PHP</title>
<link>https://collectivesolver.com/86165/how-to-check-if-a-string-contains-only-letters-numbers-underscores-and-dashes-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/86165/how-to-check-if-a-string-contains-only-letters-numbers-underscores-and-dashes-in-php</guid>
<pubDate>Sat, 31 May 2025 07:16:30 +0000</pubDate>
</item>
<item>
<title>How to declare a RegEx with character repetition to match the strings &quot;http&quot;, &quot;htttp&quot;, &quot;httttp&quot;, etc in PHP</title>
<link>https://collectivesolver.com/85373/how-to-declare-a-regex-with-character-repetition-to-match-the-strings-http-htttp-httttp-etc-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/85373/how-to-declare-a-regex-with-character-repetition-to-match-the-strings-http-htttp-httttp-etc-in-php</guid>
<pubDate>Thu, 15 May 2025 15:57:43 +0000</pubDate>
</item>
<item>
<title>How to find all double quote substrings in a string with PHP</title>
<link>https://collectivesolver.com/85125/how-to-find-all-double-quote-substrings-in-a-string-with-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/85125/how-to-find-all-double-quote-substrings-in-a-string-with-php</guid>
<pubDate>Mon, 12 May 2025 04:37:48 +0000</pubDate>
</item>
<item>
<title>How to validate a string in PHP</title>
<link>https://collectivesolver.com/84070/how-to-validate-a-string-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/84070/how-to-validate-a-string-in-php</guid>
<pubDate>Sun, 13 Apr 2025 06:28:24 +0000</pubDate>
</item>
<item>
<title>How to replace multiple spaces in a string with a single space between words in PHP</title>
<link>https://collectivesolver.com/83752/how-to-replace-multiple-spaces-in-a-string-with-a-single-space-between-words-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/83752/how-to-replace-multiple-spaces-in-a-string-with-a-single-space-between-words-in-php</guid>
<pubDate>Fri, 04 Apr 2025 13:40:47 +0000</pubDate>
</item>
<item>
<title>How to extract a substring between two tags using RegEx in PHP</title>
<link>https://collectivesolver.com/83677/how-to-extract-a-substring-between-two-tags-using-regex-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/83677/how-to-extract-a-substring-between-two-tags-using-regex-in-php</guid>
<pubDate>Wed, 02 Apr 2025 14:11:22 +0000</pubDate>
</item>
<item>
<title>How to convert lines in a multiline string starting with some &quot;#&quot; to start and end with &quot;_&quot; in  PHP</title>
<link>https://collectivesolver.com/83433/how-to-convert-lines-in-a-multiline-string-starting-with-some-%23-to-start-and-end-with-_-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/83433/how-to-convert-lines-in-a-multiline-string-starting-with-some-%23-to-start-and-end-with-_-in-php</guid>
<pubDate>Wed, 26 Mar 2025 17:46:29 +0000</pubDate>
</item>
<item>
<title>How to check if a string contains only letters and numbers using RegEx in PHP</title>
<link>https://collectivesolver.com/83403/how-to-check-if-a-string-contains-only-letters-and-numbers-using-regex-in-php</link>
<description></description>
<guid isPermaLink="true">https://collectivesolver.com/83403/how-to-check-if-a-string-contains-only-letters-and-numbers-using-regex-in-php</guid>
<pubDate>Wed, 26 Mar 2025 10:05:39 +0000</pubDate>
</item>
</channel>
</rss>