Thursday, 15 May 2014

Regex - Intellij - examples

 search android:text= without @string refference  
   
 expression:  
 android\:text\=\"[^@].+  
   
 Text  
 android:text="balloon_item_title"<--  
 android:text="@balloon_item_title"  
 android:text="1234"<--  

 select <TextView...> or </TextView...>  
   
 expression:  
 \<(\/|)TextView   

 select just TextView word in <TextView...> or </TextView...>  
   
 Expression  
 (?!=\<(\/|))TextView