6
votes
2answers
456 views

Is it possible to use NOT in a regular expression in TextMate?

I have a Matlab project which I'm working on in the OSX editor TextMate. I need to find all instances of a certain word, let's say it's "foo", that is not either preceded by a "." or succeeded by a ...
1
vote
1answer
1k views

How do I use regular expressions in TextMate's find dialog box to search and replace?

I want to replace all the \caption(.1..) \caption(.2.) \caption(.3..) \caption(.4..) by \caption{} What should I put in the search box?
2
votes
2answers
1k views

Textmate: regular expression to replace matches preserving case?

How can I use a single search / replace to replace all words town with village preserving the case of the first letter in this sentence: Towns are small cities. I live in a town.
0
votes
1answer
300 views

Exclude filetypes in a Textmate project

I know in TextMate I can go to preferences -> advanced -> folder references and play with the regex pattern to remove certain types of files and folders by default. I heard that if you have an ...
0
votes
1answer
293 views

Textmate: Find and replace across project with contents of one file from said project

I have a regular expression to find the text I want (I wrapped the relevant section in custom tags), and I can do it by hand without much issue, but what I want is a way to automatically find and ...
1
vote
1answer
272 views

Indentation-based Folding for TextMate

SASS and HAML have indentation-based syntax, much like Python. Blocks of related code have the same number of spaces at the start of a line. Here's some example code: #drawer height: 100% color: ...
0
votes
1answer
154 views

Is there ANY possible way to make TextMate's ⌘-F regex by default?

TextMate newbie here. I hate to have to grab my mouse to click that Regular Expressions box nearly every time I search. EDIT: the Regex check box becomes unchecked anytime after using ⌘-F in Safari. ...