# Define Regular Expresions C++

**URL:** <https://community.sonarsource.com/t/define-regular-expresions-c/32569>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [October 7, 2020, 5:58pm UTC](https://community.sonarsource.com/t/define-regular-expresions-c/32569 "2020-10-07T17:58:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leobip](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/leobip/32/17937_2.png) [@leobip](https://community.sonarsource.com/u/leobip)\
**Post date:** [October 7, 2020, 5:58pm UTC](https://community.sonarsource.com/t/define-regular-expresions-c/32569/1 "2020-10-07T17:58:05Z")

</div>

Regards…  
I looking to define regular expresions for variables, structs, enums and macros in C++… and i can´t find the rules, please someone to help…

Thanks

---

<div class="post-metadata">

**Author:** ![JolyLoic](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jolyloic/32/199_2.png) [@JolyLoic](https://community.sonarsource.com/u/JolyLoic)\
**Post date:** [October 7, 2020, 9:52pm UTC](https://community.sonarsource.com/t/define-regular-expresions-c/32569/2 "2020-10-07T21:52:20Z")

</div>

Hello @leobip,

We usually call those rules “naming conventions”, and you can find the for instance by searching for that term: [https://rules.sonarsource.com/cpp?search=naming](https://rules.sonarsource.com/cpp?search=naming).

Hope this helps,

---

<div class="post-metadata">

**Author:** ![leobip](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/leobip/32/17937_2.png) [@leobip](https://community.sonarsource.com/u/leobip)\
**Post date:** [October 9, 2020, 12:45pm UTC](https://community.sonarsource.com/t/define-regular-expresions-c/32569/3 "2020-10-09T12:45:31Z")

</div>

Thanks Loic…

Those rules are what I am using but I cannot get the ones referring to the names of the variables, Structs, macros and enums. In C ++ Language  
I’ve found them in Java and Python … it´s must be in C ++
