PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm trying to format a variable using regular expressions. I'm new to regular expressions and am having some difficulty. When I upload my file with the code given below it doesn't work (blank page). Please take a look at the code and let me know what I'm doing wrong:
As you can see I'm trying to set the variable $coursebrief to a string (later to be used to match a filename) that has various formats. Is it possible to apply a regular expression in this way?
And I tried the code change you suggested with the {} and the page is still showing up blank. I tried taking that code out of the page and it worked fine, so I know the problem is in that line somewhere.