RegEx question

Adam Lanier adam at krusty.madoff.com
Thu Oct 4 18:34:35 CEST 2007


On Thu, 2007-10-04 at 10:58 -0500, Robert Dailey wrote:
> It should also match:
> 
> @param[out] state Some description of this variable
> 
> 
> On 10/4/07, Robert Dailey <rcdailey at gmail.com> wrote:
>         Hi,
>         
>         The following regex (Not including the end quotes):
>         
>         "@param\[in|out\] \w+ "
>         
>         Should match any of the following:
>         
>         @param[in] variable 
>         @param[out] state 
>         @param[in] foo 
>         @param[out] bar 
>         
>         
>         Correct? (Note the trailing whitespace in the regex as well as
>         in the examples)
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list

try @param\[(in|out)\] \w+ 




More information about the Python-list mailing list