EmEditor (text editor) Forum Index
   Regular Expressions
     Remove space between a number and a fraction ...
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
WmMitchell
Posted on: 11/7/2009 7:18 am
Just popping in
Joined: 11/1/2009
From:
Posts: 5
Remove space between a number and a fraction ...
I'm trying EmEditor out. Jury is still out on whether or not this one is a keeper. If I can just figure out how to get the S&R functions down, that will determine on whether or not this is the app to keep.

The trouble is that I'm dealing with trying to figure out the regexp to use with EmEditor (which I'm woefully inexperienced in to begin with) and trying to figure out the EmEditor macro language at the same time! Not easy <g>.

I need to know how to remove the space between a number-space-fraction text string. If I have something like
2 ½

I need to change that to


I've tried this type of thing:
document.selection.Replace("[0-9]+ ¼","[0-9]+¼",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);

The above seems great to _find_ the items but used to try to find entries such as this:


I get this as a result:
[0-9]+½

How can we fix this from the macro:

document.selection.Replace("[0-9]+ ¼","[0-9]+¼",eeFindNext | eeReplaceAll | eeFindReplaceRegExp);

so that we get the desired result, pls?

From there, I'm sure that will help me learn how to work with the other parts of the script that deal with the same type of thing.

Thanks. :)
Flat Previous Topic | Next Topic


Subject Poster Date
 » Remove space between a number and a fraction ... WmMitchell 11/7/2009 7:18 am
     Re: Remove space between a number and a fraction ... MariaK 11/7/2009 11:39 am
       Re: Remove space between a number and a fraction ... WmMitchell 11/8/2009 5:48 am
         Re: Remove space between a number and a fraction ... MariaK 11/9/2009 3:20 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文