Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] newbie - syntax for stripping from (search string) to (search string)

Expand Messages
  • Alec Burgess
    Good catch re: embedded CRLFs requiring (?s) !! :-[ ... [Non-text portions of this message have been removed]
    Message 1 of 4 , Nov 23, 2009
      Good catch re: embedded CRLFs requiring (?s) !! :-[

      Art Kocsis wrote:
      > Jane,
      >
      > Since you have embedded CRLFs in your search string you have to add
      > a (?s) at the beginning of Alex's RegEx for it to work. I also like to escape
      > special characters so I added the extra "\".
      >
      > The command then becomes:
      >
      > ^!Replace "(?s)<li.*?;\">" >> "" rwais
      >
      > (Tested & working in NTB Std 5.8)
      >
      > Enjoy
      >
      > Namaste', Art
      >
      > At 11-23-09 13:46, you wrote:
      >
      >> Jane:
      >> This should work (not tested)
      >> ^!replace "<li.*?;">" >> "" rwais
      >>
      >> Note - above is valid in Notetab 5.x, 6.x not in Notetab 4.9x and
      >> earlier (you said you'd been using it for years).
      >>
      >> You can do the same thing in Find/Replace dialog by ticking the regex
      >> box and setting:
      >> FIND=<li.*?;">
      >> REPLACE= leave empty
      >>
      >> Notetab clip syntax correctly treats internal quote marks (ie. within
      >> the wrapping quote marks) so above will look for the string ;"> as you want.
      >>
      >> Jane Peppler wrote:
      >>
      >>> Hi,
      >>> I've been using this text-editor for years but I'm a musician not a
      >>> programmer and even though I read through the whole clipbook help file
      >>> I can't figure this out ... sorry to ask but ...
      >>>
      >>> I have a file full of this stuff:
      >>>
      >>> <li
      >>>
      >> style="background:url(<http://static.squidoo.com/resize/squidoo_images/40/lm5bafa73a489028acf30a2a95304f6cf6_1238591647KatesViolin>http://static.squidoo.com/resize/squidoo_images/40/lm5bafa73a489028acf30a2a95304f6cf6_1238591647KatesViolin)
      >>
      >>> no-repeat center;"> <a
      >>>
      >>>
      >> href="<http://www.squidoo.com/lensmasters/mukunda22>http://www.squidoo.com/lensmasters/mukunda22"
      >> title="mukunda22"
      >>
      >>> rel="nofollow">mukunda22</a> </li>
      >>>
      >>> I want to search from <li to ;"> and have that be highlighted and
      >>> deleted. What is the clipbook syntax for that?
      >>>
      >>> Thanks so much.
      >>> Jane Peppler
      >>>
      >> Regards ... Alec (buralex@gmail & WinLiveMess - alec.m.burgess@skype)
      >>
      >
      > ----------
      >
      >
      > No virus found in this outgoing message.
      > Checked by AVG - www.avg.com
      > Version: 9.0.709 / Virus Database: 270.14.78/2521 - Release Date: 11/22/09 23:52:00
      >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.