|
|
Subject:
Regular expression to parse variable names
Category: Computers > Programming Asked by: bobopico-ga List Price: $15.00 |
Posted:
14 Jul 2006 16:51 PDT
Expires: 14 Jul 2006 21:45 PDT Question ID: 746454 |
|
There is no answer at this time. |
|
Subject:
Re: Regular expression to parse variable names
From: ysf-ga on 14 Jul 2006 20:00 PDT |
Hi, at first, please excuse my bad english :/ A common trick is to parse everything allowed and then negate that expression. ([a-zA-Z]\w+)[^\w(] with your example and only got the variable back. The ^ sign in brackets that we allow everything besides \w and ( Have fun :) |
Subject:
Re: Regular expression to parse variable names
From: ysf-ga on 14 Jul 2006 20:08 PDT |
Hi, at first, please excuse my bad english :/ A common trick is to parse everything allowed and then negate that expression. ([a-zA-Z]\w+)[^\w(] The ^ sign in brackets means that we allow everything besides \w and (. Hope this helps or points you to another solution. Best regards, ysf :) |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |