Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-08-2011, 12:57 PM   #1
kamanza
Zealot
kamanza began at the beginning.
 
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?
kamanza is offline   Reply With Quote
Old 11-08-2011, 02:40 PM   #2
Ahmad Samir
Zealot
Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!
 
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 02:43 PM.
Ahmad Samir is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting paragraph tags Oldpilot Sigil 3 02-21-2011 12:00 AM
Inserting a signature. chrischance Lounge 4 10-28-2010 02:27 PM
Help with Recipe inserting tag TonytheBookworm Recipes 1 09-25-2010 11:05 AM
Inserting Pictures? MickeyC Feedback 6 05-20-2009 01:02 PM
html2epub and inserting images roger64 Calibre 0 05-06-2009 11:31 AM


All times are GMT -4. The time now is 04:15 AM.


MobileRead.com is a privately owned, operated and funded community.