[TextMate] RegExp question

Allan Odgaard allan at macromates.com
Sat Oct 16 13:06:47 UTC 2004


On 16. Oct 2004, at 14:44, Jeroen wrote:

> I'm having a bit of a trouble to match a '.' which is part of a string 
> surrounded by " ".

So you only want to match the single dot? This is currently not 
possible (AFAIK) since there is no look-behind assertions. But if this 
is for search and replace, you can use something like: 
»("[^"]*)\.([^"]*")« and in the replacement string do »$1-$2« to e.g. 
turn it into a dash.


Kind regards Allan




More information about the textmate mailing list