I would try:

Search
^.*(part.*number).*<b>(.*)</b>.*

Replace
\1 \2

If the lines have carriage returns in them then you will have to
search for the carriage returns with \n \r in the Search portion of
the expression.


^.*(part.*number).*\n.*\n.*<b>(.*)</b>.*

The ^ means start at the beginning of a line and a $ means at the end
of the line but does not include the \n or \r carriage returns (Enter
key) so you will have to adjust your search for those settings. By
putting a search term in ( ) you can use the \# in replace to extract
the search results to replace certain items.

Text to be searched
I want a yellow cat with a red bow
Search
I want a (yellow) cat with a (red) bow
Replace
I like the colors \1 and \2.

Result
I like the colors yellow and red.





On Thu, Sep 24, 2009 at 10:54 AM, Michael Heth <[email protected]> wrote:
>
>
> On Sep 23, 2009, at 5:50 PM, le...@gmail wrote:
>
>>
>> On 23-Sep-2009, at 17:33, Michael Heth wrote:
>>> <a href="Linecard.cfm?
>>> do=detail&q_part=650%2E494%2000%2002"><b>650.494
>>> 00 02</b></a>
>>>
>>>
>>> <b>650.494 00 02</b>
>>
>> Find: ^.*<b>([^<]+)</b>.*$
>> Replace \1
>>
>
> I very much appreciate the help above but I guess I was lax in my
> example text. The part I need to mod is what I posted but those links
> are strewn throughout a large page and so the code above removes more
> than I need and breaks some formatting. Below is a large slug of what
> I'm trying to work with. Maybe there's a just a tweeze that would help
> me.
>
> Again, thanks for any pointers/examples.
>
> M./
>
> I need the line below
>
> <br>Part Number:<a href="Linecard.cfm?
> do=detail&q_part=650%2E494%2000%2002"><b>650.494 00 02</b></a>
>
>  to end up as
>
> <br>Part Number:<b>650.494 00 02</b>
>
>
> </form>
> </td>
> </tr>
> <tr>
> <td align="LEFT" valign="TOP" nowrap>YAM</td>
> <td align="LEFT" valign="TOP" nowrap>
> Bag mounts XV750/1100 w/sissybar
> <br>Part Number:<a href="Linecard.cfm?
> do=detail&q_part=650%2E494%2000%2002"><b>650.494 00 02</b></a>
> <table border="0" width="400" cellspacing="4" cellpadding="2"
> bordercolor="#445B87" style="font-size: x-small; font-family: sans-
> serif;">
> <tr><td>
> <b>
> Special Order
> </b>
> </td></tr>
> </table>
> </td>
> <td align="RIGHT" valign="TOP" nowrap>
> $385.30
> </td>
> <td align="LEFT" valign="TOP" nowrap>
> <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr";
> method="post">
> <input type="hidden" name="business" value="[email protected]
> ">
> <input type="hidden" name="on0" value="650.494 00 02">
> <input type="hidden" name="item_name" value="Hepco and Becker mounts
> XV750/1100 ">
> <input type="hidden" name="amount" value=385.30>
>
>  <input type="hidden" name="add" value="1">
> <input type="hidden" name="cmd" value="_cart">
>
>
> >
>



-- 
Best Regards, Keith

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---

Reply via email to