How-to preg_match/preg_match_all with constant or var in regex?

SwevaSlalkrab

New Member
I have the following pattern:\[code\]preg_match( "/^(.*?\/wp-content\/)([^\?]+)(.*)$/", $src, $src_bits );\[/code\]Now I want to set \[code\]wp-content\[/code\] to a constant named \[code\]WP_CONTENT_FOLDERNAME\[/code\] that holds the folder name. How would I do that?
 
Back
Top