|
|
#1 |
|
Zealot
![]() Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
Inserting a space
In the text file i'm trying to edit now i've encountered multiple cases of the same word following the preceding one or a punctuation mark without a space between them.The expression:
[^\s]word finds them , but what can i use for the replacement, so that the character preceding 'word' does not disappear? |
|
|
|
|
|
#2 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
|
Find:
([^\s])word Replace with: \1 word the () capture what's between them and store it, you can reference what was found with \1. Last edited by Ahmad Samir; 11-08-2011 at 03:43 PM. |
|
|
|
| Advert | |
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inserting paragraph tags | Oldpilot | Sigil | 3 | 02-21-2011 01:00 AM |
| Inserting a signature. | chrischance | Lounge | 4 | 10-28-2010 03:27 PM |
| Help with Recipe inserting tag | TonytheBookworm | Recipes | 1 | 09-25-2010 12:05 PM |
| Inserting Pictures? | MickeyC | Feedback | 6 | 05-20-2009 02:02 PM |
| html2epub and inserting images | roger64 | Calibre | 0 | 05-06-2009 12:31 PM |