View Single Post
Old 08-25-2011, 05:43 PM   #4
camilou
Junior Member
camilou began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Nook
Quote:
Originally Posted by itimpi View Post
\s Will match a single whitespace character. You might want to try \s* instead
Yes, I understand. However, there was only one white space. Let me paste a little of the text in here:

Quote:
<p class="calibre2">Atticus reached up and took off his glasses, turned his good right eye to the witness, and rained questions on her. Judge Taylor said, "One question at a time, Atticus. Give "To Kill a Mockingbird" By Nelle Harper Lee100</p>
<p class="calibre3"> </p>
<p class="calibre2">the witness a chance to answer."</p>
<p class="calibre3"> </p>
And the regular expression I used matches this:

Quote:
<p class="calibre2">Atticus reached up and took off his glasses, turned his good right eye to the witness, and rained questions on her. Judge Taylor said, "One question at a time, Atticus. Give "To Kill a Mockingbird" By Nelle Harper Lee100</p>
<p class="calibre3"> </p>
<p class="calibre2">t
he witness a chance to answer."</p>
<p class="calibre3"> </p>
As you can see the match is perfect, but the thing is, once I close the window and press "Ok" the program won't replace the match, unless I replace that single "\s" with another class, like "." for any character. That's the thing I don't understand. I'm going to read the sticky again and see if there's something about regular expressions and white spaces I might have overlooked.
camilou is offline   Reply With Quote