Regular Expression for entities like …

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
prashob12
Posts: 18
Joined: Thu Oct 25, 2007 1:31 am
Location: India

Regular Expression for entities like …

Post by prashob12 »

Can any one tell me how to find entities like

… or á

The above told entities may be 4 or 5 characters between &#x and ;

It would be of great if any one help me regarding this
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

This will do a simple Find:
&#x.{4,5};
But it is based on a single occurrence on a line
Need to see the context where these may be located.

More than one on a line? Separated by what type of text?
All strung together where ; is the delimiter?
In the body of general text sentences?
Etc.

How do you want to select them?
Bookmark each line with a match
Have the chosen string selected one at a time, ie: Find/Find Next/Find Next/?

Do you want to do anything with the chosed string? Replace the numbers with something else. Replace any of the other characters? Remove the chosen string from its surrounding text?
Etc.
Hope this was helpful.............good luck,
Bob
prashob12
Posts: 18
Joined: Thu Oct 25, 2007 1:31 am
Location: India

Post by prashob12 »

Hi BOB,

It works fine, Thanks a lot..
Post Reply