Thread
:
Mathch a string while ignoring some character in that string?
View Single Post
12-01-2011, 07:38 PM
#
10
ElMiko
Evangelist
Posts: 471
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by
Serpentine
Yeah, I just tested it - works correctly for me.
If you can give the pattern and perhaps a sample+expectation, I'll have a look.
I want to:
Spoiler
:
turn this (and all similar instances):
but</p>
<p class="calibre2"></p>
<p class="calibre2">The Gh oul G al l ery</p>
<p class="calibre2">the lights
into this (or its formatting equivalent):
but the lights
the search/replace i do is:
Spoiler
:
SEARCH:
</p>[\s]+<p class="calibre2"></p>[\s]+<p class="calibre2">T
(
(| )h(| )e(| )G(| )h(| )o(| )u(| )l(| )G(| )a(| )l(| )l(| )e(| )r(| )
)
y</p>[\s]+<p class="calibre2">
(
[a-z]
)
REPLACE:
\2 -----> (there's a "space" before the backslash)
And what I keep getting is:
Spoiler
:
but he lights ------>
Note the lost "t"
Last edited by ElMiko; 12-01-2011 at
07:43 PM
.
ElMiko
View Public Profile
Find More Posts by ElMiko
Track Posts by ElMiko via RSS