Results 1 to 2 of 2
Dear all,
I have a string like that:
Code:
#if [abcxyz]MY_STRING[abc_xyz]
So, what is the regular expression for this string. Notice that, MY_STRING has the same prefix with another keyword, ...
- 06-27-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 4
What is regular expression for this string
Dear all,
I have a string like that:
So, what is the regular expression for this string. Notice that, MY_STRING has the same prefix with another keyword, for example, MY_STR, MY_STRING_EXTEND, MY_STRI_2, ...Code:#if [abcxyz]MY_STRING[abc_xyz]
I tried
but it does not workCode:#if\+[.+^\r\n\t ]MY_STRING[\r\n\t ]
Please help me
- 06-27-2011 #2Just Joined!
- Join Date
- Apr 2011
- Posts
- 4
Question number 2 is:
I want to find nested #if in my source code, so I tried the below regex:
Is is okie?Code:#if+[.*^#]#if+[.*]#endif


Reply With Quote