I'm trying to convert a Python script into PHP.
The following 2 regular expressions work in Python:
'/\*\*([\w\n\(\)\[\]\.\*\'\"\-#|,@{}_<>=:/ ]+?)\*/'
'(?:\* ([\w\d\(\),\.\'\"\-\:#|/ ]+)|(?<= @)(\w+)(?: (.+))?)'
...however, if I try to run them in PHP I get:
Warning: preg_match_all() [function.preg-match-all]: Unknown modifier ']'
How come?
<>=:/and then finds the]which is not a valid modifier.