How to search?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
JohnTomas
Junior Member
Junior Member
Posts: 2
Joined: 2004-06-04, 06:31 UTC

How to search?

Post by *JohnTomas »

Hi.
I would like to search in a directory all the files that have the word "typedef XXX newtype" where XXX could be any word. e.g. if the files contain "typedef int newtype" or "typedef bool newtype" or "typedef long newtype" etc. I should get these files returned. could anyone help? I read the regular expression help from total commander, but have no idea... thanks!!
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Wildcard

Post by *Clo »

2JohnTomas
:) Hi

• Try:
typedef * newtype

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
JohnTomas
Junior Member
Junior Member
Posts: 2
Joined: 2004-06-04, 06:31 UTC

Post by *JohnTomas »

Thanks. But I tried that. It didnt work. :( Anymore help please? I often have to search for this sort of expressions and it is a big pain in the ass.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

typedef.*newtype

Dont forget to turn on RegEx on the search window.
I switched to Linux, bye and thanks for all the fish!
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

typedef .* newtype

Dont forget the spaces if they are necessary and to turn on RegEx on the TEXT search window just below hexadecimal...
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

2Vansumsen
Hehe, I won ;-)
I switched to Linux, bye and thanks for all the fish!
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

2SanskritFritz
Hehe, you won ;-)

I spend to mutch time to type the two spaces who makes the difference...

Friendly

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
Post Reply