# Regex to find 1º, leave out 11º

**URL:** <https://forum.xbench.net/t/regex-to-find-1-leave-out-11/1118>\
**Category:** General Discussion\
**Created:** [March 7, 2024, 11:05pm UTC](https://forum.xbench.net/t/regex-to-find-1-leave-out-11/1118 "2024-03-07T23:05:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IzaO](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@IzaO](https://forum.xbench.net/u/IzaO)\
**Post date:** [March 7, 2024, 11:05pm UTC](https://forum.xbench.net/t/regex-to-find-1-leave-out-11/1118/1 "2024-03-07T23:05:25Z")

</div>

I am trying to write a regular expression that will find instances of 1º, 21º, 31º… Everything ending in 1º, BUT NOT 11º (i.e., leave out the specific case of 11º).

I have tried the following, all in RegEx mode:

[!1]1º  
(!11º)  
([2-9]?1º)|[0]1ºv  
And many variations of these (brackets, quotation marks…

I must be missing something. Can you help?

Izaskun

---

<div class="post-metadata">

**Author:** ![omartin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.xbench.net/omartin/32/82_2.png) [@omartin](https://forum.xbench.net/u/omartin)\
**Post date:** [March 8, 2024, 8:28am UTC](https://forum.xbench.net/t/regex-to-find-1-leave-out-11/1118/2 "2024-03-08T08:28:18Z")

</div>

Try the following search:

`<1º> OR <[2-9]1º> OR <[1-9][2-9]1º>`

Search mode: Regular Expressions  
PowerSearch: On.
