unusual regex expression
Moderators: egami, macek, gesf
-
- php-forum Fan User
- Posts: 973
- Joined: Mon Oct 01, 2012 12:32 pm
i usually have a hard time with regex, but this one looks straightforward. (.*) says to capture all sequential iteration of a pattern, in this case no pattern is specified so it will return everything. (:) means to capture just that character, and then back to another (.*). i believe that the pattern you've listed would return the same result as a single (.*)