S
S
sorry_i_noob2019-10-13 00:25:51
IDE
sorry_i_noob, 2019-10-13 00:25:51

Is there any way to search the IDE for a word, ignoring trailing hyphens like any other characters?

Let's say I want to search for the word flex__col. I press Ctrl + Shift + F, enter flex__col, and I get the following words as a result:

flex__col-red
flex__col-green
flex__col-blue

I check the "word" box and nothing changes. If instead of hyphens there was an underscore, then it would change (ONLY flex__col would be found).
Is there any way to search for a word that can end with a hyphen (but doesn't have to) as well as a word that can end with an underscore, for example (but doesn't have to)?
I wrote such a regular expression and tried to search using regular expressions:
(flex__col)([^-])
But it captures one more character at the end, which is not very convenient. Are there better options?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question