My search skilz are teh sux0r

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

My search skilz are teh sux0r

Post by syrupcore »

<span>Content here</span>
<span>This completely different content</span>

what do I type in the search dialog to find both of these lines?

I've tried a bunch of things to no avail. help?

Thanks,
Will
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Post by MikeyB »

Hi Will,

This regular expression appears to work:
<span>[^>]+</span>

I did try a slightly simpler one at first, but it was finding from the first <span> to the very last </span> in the file, but it did work fine in EditPlus.

I've always found the regular expression search in WeBuilder to be limited in what it can do.

Mike
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

Hey, thank you.

I just tried it and it doesn't seem to work. I made a test doc with this in it:

Code: Select all

<span>foo</span>
<span>var</span>
<span>variant</span>
<span>bar</span>
and searched with <span>[^>]+</span> with reg ex turned on. says 'search string not found'. I had it on entire scope.

Have I missed something?

Thanks,
will
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Post by MikeyB »

That's odd, just copied & pasted your little snippet into WeBulder, copied the search regex from your post, and it works:

Image

I had entite scope on, just noticed it switches back to from cursor after the 1st find.
Clicking Find Next does indeed find the next <span>...</span>
Post Reply