0

How do I search for an exact match to a phrase or word in Flash Builder's search tool?

For example, in my project I have a class with a function named "removeEvent". If I search on it, I get all instances where "removeEventListener" is used and of course that is not helpful.

I have searched on the web but only come up with similarly unhelpful false hits (how ironic).

It appears I can use regex but I don't know how to do that and trying this answer to a regex question was no help

enter image description here

Community
  • 1
  • 1
spring
  • 17,373
  • 15
  • 75
  • 154

1 Answers1

0

Enable the regular expression option and then use the below regex.

\bremoveEvent\b

\b called word boundary which helps to do an exact match.. \b matches between a word charcater and non-word character, vice-versa..

Avinash Raj
  • 166,785
  • 24
  • 204
  • 249