Only keep text that is in certain span tags?

Hi,
Does anyone know if there is a way to do this with find and
replace? Go through a document and keep all text that is within a
span tag with the class "test"? For example, if this is the
document:
<span class="test">one</span>
adsfasdfasd
<span class="asdfds">two</span>
adsfadsf
<span class="test">three</span>
adfasdfas
<span class="asfdasdf">four</span>
Then it should look like this when finished:
<span class="test">one</span>
<span class="test">three</span>
Thanks, Matt

I would do three steps -
1. Find the tags you want to keep and change them to some
other tag, e.g.,
<span> => <h6> | <address> | something
like that.
2. Strip all the remaining span tags.
3. Revert the first change.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Matt_M_" <[email protected]> wrote in
message
news:eujong$dvk$[email protected]..
> Hi,
>
> Does anyone know if there is a way to do this with find
and replace? Go
> through a document and keep all text that is within a
span tag with the
> class
> "test"? For example, if this is the document:
>
> <span class="test">one</span>
> adsfasdfasd
> <span class="asdfds">two</span>
> adsfadsf
> <span class="test">three</span>
> adfasdfas
> <span class="asfdasdf">four</span>
>
> Then it should look like this when finished:
>
> <span class="test">one</span>
> <span class="test">three</span>
>
> Thanks, Matt
>
>

Similar Messages

  • Ability to globally delete all text/topics that have a certain conditional tag?

    When deleting a conditional tag in FrameMaker, there is an option to either delete all tagged text, or make the text unconditional. But in Robohelp, it seems the only option is to make the text unconditional. Is there any way to delete all the text with a specific conditional tag, other than deleting it manually? I am using Robo 7. Is there an option to do this in the newer versions? Thanks!

    If you are bringing in content from FrameMaker and want to delete (not bring) certain content having a conditional text applied in the FM source, then while conversion there is a simple way to achieve it, apply "FrameMaker condition text build Expression" during Import/Link FM source.
    If you use this option while you import or Link any FM source with conditions, then all the text/content having condition set as hidden in FrameMaker will get remove from the topics generated
    but inside RoboHelp you dont have this option to directly remove content from topic, but while generating any output you have the option to exclude any content with a condition applied over it!
    Hope this will help
    Ashish

  • Hi there!  Question;  recently (2 days ago), I began receiving text messages on my phone that says urgent and is from 6250.  The only other text that it lists is VZWNMN:1  I don't know how to block this from my phone and have no idea what the heck it is!

    Okay, so a couple of days ago I began getting these weird texts to my phone from 6250.  The text reads VZWNMN:1 
    DOES ANYONE HAVE ANY IDEAS WHAT THIS IS?  I've RECEIVED AT LEAST 50 OR MORE AND THEY KEEP COMING!  Anyone out there have any idea how to stop them or block them?

    Did you try searching the community for similar discussions? There are five of them listed to the right of your post under the "More like this" column.

  • [CS3]  get text that is being composed

    When creating custom attribute, Implementation of changes to composition is in "TellComposition" method which looks like this
    > virtual void TellComposition(ICompositionStyle* compositionStyle, IDrawingStyle* drawingStyle) const;
    My question is how is it possible to get raw text which is being recomposed.
    Or maybe it would be better to attach observer to notify for raw text change(if possible only on text that has attribute), and which ISubject would I observe.
    any help is greatly appreciated.

    You can use the setStyle method to assign a TextFormat to the textarea...
    var taFormat:TextFormat = new TextFormat();
    taFormat.size = 24;
    textArea.setStyle("textFormat", taFormat);

  • A Find expression to find everything in span tag

    I imported word doc into my robohelp project and there is a lot of span tag junk i want to get rid of.
    Is there an expression i can build in the "find and replace" tool that will find any span tag and its contents?
    In the following example I want to delete the whole string including the brackets:
    <span style="letter-spacing: .05pt;">
    I'm thinking possibly a wildcard like: <span ***>
    I don't see a wildcard option in robohelp help related to building find expressions.

    Humour me.
    Create a Word document with a table that has a named style applied.
    Create a Rh project with a table style given the same name. It does not have to look the same and it might be better if it does not, you will know whether or not the mapping is working.
    Import making sure you map the table styles.
    Do you still have unacceptable span tags?
    If the above idea does not solve the problem, give me some examples of your span tags, especially the ones where your expression is not working. I will try to come up with something but it might take a day or two before I can get back to you.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can i AppendText to richTextBox only if the text is new(different) from the text that is already in the richTextBox ?

    Code
    public void ScrollNews()
    listsext.Ext(page);
    combindedString = string.Join(Environment.NewLine, ListsExtractions.myList);
    richTextBox1.SelectAll();
    richTextBox1.SelectionAlignment = HorizontalAlignment.Right;
    richTextBox1.AppendText(combindedString);
    scrollerText = string.Join(Environment.NewLine, ListsExtractions.myListWithoutLinks);
    scroller1.TextToScroll = scrollerText;
    if (NewsLevels.newsLevel && NewsLevels.shouldStart)
    UpdateTextControls();
    scroller1.Start();
    NewsLevels.shouldStart = false;
    if (NewsLevels.newsLevel == false && NewsLevels.shouldStart)
    UpdateTextControls();
    scroller1.Start();
    NewsLevels.shouldStart = false;
    string[] rlines = richTextBox1.Lines;
    richTextBox1.SelectionStart = 0;
    richTextBox1.SelectionLength = rlines[0].Length;
    richTextBox1.SelectionColor = Color.Red;
    richTextBox1.Select(rlines[0].Length, rlines[1].Length + 1);
    richTextBox1.SelectionColor = Color.Green;
    RedColorAlert1();
    if (lines == null)
    label5.Text = "0";
    else
    label5.Text = lines.Length.ToString();
    The line is:
    richTextBox1.AppendText(combindedString);
    I'm calling this method ScrollNews every X minutes with a timer.
    The way it is now it will AppendText all the time. But i want it to Add the combinededString only if the text in combindedString was different from the text that is already in the richTextBox. Somhow to keep all the time the last text and compare it and
    if there is a new text then appen it.

    public void Scroll()
    listsext.Ext(page);
    combindedString = string.Join(Environment.NewLine, ListsExtractions.myList);
    richTextBox1.SelectAll();
    StringBuilder sb = new StringBuilder();
    sb.Append(combindedString);
    richTextBox1.SelectionAlignment = HorizontalAlignment.Right;
    richTextBox1.AppendText(combindedString);
    The problem is that now it will keep adding to the richTextBox the content in combindedString over and over again. I need somehow to check each time if the content in combindedString already exist in the richTextBox if not meaning it's new content then AppendText
    it.
    If it's the same already exist do nothing don't add it.
    EDIT
    I write to a text file the content of the ombindedString variable .The first content the lines is the combindedString:
    המשטרה עצרה אמא ל2 ילדים קטנים שבעלה נעצר בחשד למעורבות בעלה בכריתת עצים
    15:03 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189935.shtml
    אדם החשוד בעבירת מין בקטינים נעצר לאחר שהתלונן על 2 שסוחטים אותו על רקע מעשיו
    14:50 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189932.shtml
    אינדונזיה: 5 הרוגים בקריסת האנגר בנמל תעופה
    14:44 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189930.shtml
    אום אל-פחם: מספר חשודים עוכבו בחשד למעורבות במימון טרור
    14:04 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189914.shtml
    אלמנתו של רפ''ק ג'דעאן אסעד, שנרצח בפיגוע הדריסה, ילדה בן
    13:05 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189884.shtml
    תנאי ליברמן לכניסה לממשלה עונש מוות למחבלים חובת חתימה על מסמך נאמנות
    12:39 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189868.shtml
    תלמיד תיכון מרחובות חשוד שהפעיל מעבדה ביתית לזיוף תעודות זהות ואישורי מחלה
    12:03 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189856.shtml
    הצביעות של רענן שקד: האשים את אמהות 3 החטופים ומגנה את חגי הוברמן
    11:43 דווח במקור בתאריך : 09.03.15 : שעה
    http://rotter.net/forum/scoops1/189848.shtml
    And this is a screenshot i couldnt copy the text of the richTextBox1.Text
    richTextBox1.Text content image
    co uld be that the format of the text in the combindedString and the richTextBox1.Text looks different so it think it's not exist ?
    Update:
    Not sure if it's important but the combindedString i'm adding the text to it from the variable ListExtractions.myList
    myList is List and i build this List like that:
    private void ListToStringList(List<string> myl)
    for (int i = 0; i < AllNews.Count; i++)
    myl.Add(AllNews[i].text);
    IFormatProvider provider = CultureInfo.InvariantCulture;
    DateTime myTime = DateTime.ParseExact(AllNews[i].original_time, "DyyMMddTHHmm", provider);
    string results = myTime.ToString("HH:mm דווח במקור בתאריך : dd.MM.yy : שעה");
    myl.Add(results);
    myl.Add(AllNews[i].link);
    myl.Add(Environment.NewLine);
    myListWithoutLinks.Add(AllNews[i].text);
    myListWithoutLinks.Add(results);
    myListWithoutLinks.Add(Environment.NewLine);
    for (int i = 0; i < myl.Count; i++)
    myl[i] = Regex.Replace(myl[i], @"\t|\n|\r", "");
    And use it:
    ListToStringList(myList);

  • Cannot Select Text That Use Certain Fonts

    I have some PDF files where I cannot select the text because they use certain fonts (monotxt for example) when I change the font to Arial and recreate the PDF, then I can select the fonts for copy and paste. My question is how to add fonts that Adobe can recognize for selection.

    The fonts are invisible to selection. I cannot select them at all. I do have the license for these fonts. I did some further tests and found that it only happens when I make a PDF from my AutoCAD application and use the monotxt font type. I guess it could be a problem with the AutoCAD application and the creation of the PDF and not the Adobe Reader.

  • My iphone was off for almost two weeks and once i cut it back on i only recieved text messages but no imessages that i KNOW were sent to my phone... is there anyway i can see them or no?

    My iphone was off for almost two weeks and once i cut it back on i only recieved text messages but no imessages that i KNOW were sent to my phone... is there anyway i can see them or no?

    Hi,
    In Messages on the Mac do you have the Preferences > Messages section set to "Save History when Conversations are Closed" ?
    This will store all IMs and iMessages in ~/Library/Messages/Archive.
    Use the Finder > Go Menu > Go to Folder and type that path into the Dialogue box that appears. (~/Library/Messages/Archive).
    They are stored in dated folders so some guessing/trail and error will be needed.
    You may find that if this was an iMessage and you  send the person a new message that the whole History with that Contact since you installed Mountain Lion/Started Messages may appear and that it is scrollable the closer you get to the "top" and the top may keep moving until all is on show.
    10:31 PM      Monday; December 24, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • My IPhone 5 is set on keep,text forever but I can only go back to mid August how do I access the rest of my text?"

    why can I not access all my text when my setting is 'keep text forever' I can only get text upto August?

    Hey staceypryz,
    Thanks for the question. I understand that your iPhone is unexpectedly restarting and displaying only the Apple logo. For this issue, it may be best if you contact Apple Support, as recommended in this resource:
    iOS: Device unexpectedly restarts, displays Apple logo, or powers off
    http://support.apple.com/kb/TS5356
    Resolution
    Make sure your iOS device is up to date. If you still see this issue after updating, contact Apple Support.
    Learn what to do if your iOS device won't start up past Apple logo or doesn't respond.
    Thanks,
    Matt M.

  • I am trying to sync my ipod but it keeps saying that a previous library exists and that I can only sync it to one library.  I want to sync it to the previous library but how do I get it to go there?

    I am trying to sync my ipod but it keeps saying that a previous library exists and that I can only sync to one library.  I want to sync it to the original library bc that is the one that has all songs.  It keeps giving me a library with just songs that I have bought on itunes.  I never created a new library so I am not sure why it is doing this.  How do I get it to sync to my original library?  I have already tried to restore a previous version of itunes but that did not help.

    It appears that something happened to yur computer/iTunes files.  It happens sometimes.  To recovery:
    - Import the old music into the current iTunes library
    - Make sure all the apps are also in the library
    - If in the USA and therplaces where iCloud has benn released you can redownload most iTunes puchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - You can always redownload apps at no additional cost as long as you are singned into the same iTunes account the originally purchased them.
    - After all the suff in in the iTunes library, make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPOd under Devices in iTunes. 
    - Restore the iPod from backup and restore as necessary.

  • What to do?? -What to do?? - I just updated my iTunes to ver 11.2.1 because of the annoying messages they keep sending out. Now I can't play the movies and TV series I've purchased and were watchable before - This movie can be played only on displays that

    What to do?? - I just updated my iTunes to ver 11.2.1 because of the annoying messages they keep sending out.
    Now I can't play the movies and TV series I've purchased and were watchable before.
    Comes up with "This movie can be played only on displays that support HDCP (High-bandwidth Digital Content Protection)."
    The cheek of the matter is everytime I tried to get Apple support it comes up with a request for me to pay $54 for their support package, to fix a problem I didn't have until I complied to one of their update requests.
    End of Rant!!! - Anyone know how to fix please?

    Well, I wonder about all the responses...:)
    Anyhow, I wound up "fixing" the problem by using the System Restore disks for the Mini. It's now running Tiger 10.4.11 (with all updates) and I copied my iTunes library over. It all works now. <shrug> I have no idea what the problem was, and I'm a bit leery of upgrading it to Leopard, so I think I'll just leave well enough alone.
    Richard

  • HT4623 I just downloaded iOS 6 because I hadn't downloaded that one yet then once that is downloaded i tried to download iOS 7 but my settings keeps saying that I already hav the latest update but my update is only iOS 6 not 7 so I was wandering how to ge

    I just downloaded iOS 6 because I hadn't downloaded that one yet then once that is downloaded i tried to download iOS 7 but my settings keeps saying that I already hav the latest update but my update is only iOS 6 not 7 so I was wandering how to get iOS 7 to download onto my iPod

    iOS 7 not compatible with 4G iPod
    All the iOS devices compatible (iPhone 4 and later, iPad 2 and later, and 5G iPod touch) with iOS 7 have at least 512 MB of memory. The 4G iPod only has 256 MB

  • I had 4 installtion disk but the last installation disk is missing. I still allow to keep the photoshop , indesign and illustrator software in the computer but i can only keep that on a trial of 30 days. In order to use it permenantly, I have to activate

    I had 4 installation disk but the last installation disk is missing. I still allow to keep the Photoshop , Indesign and illustrator software in the computer but i can only keep that on a trial of 30 days. In order to use it permanently, I have to activate the Suite. As the phone activation service is no longer available. I try the online activation as mention in the phone message when I tried to call, but is not successful@ as it didn't bring to an activation page. What should I do to activate it or solve the problem?

    There should be an option tro activate when you run any of the installed programs.

  • I need to delete a text that keeps locking up my iPod. The text contains a long string of emojis (a bunch of ant symbols).  It keeps locking up the iMessage screen.  Was doing it on my iPhone to

    I need to delete a text that keeps locking up my iPod. The text contains a long string of emojis (a bunch of ant symbols).  It keeps locking up the iMessage screen.  Was doing it on my iPhone too. How do I delete an old text that keeps trying to come through my apple Id?
    Thanks?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • The app for texting that comes with the phone keeps crashing what should i do?

    the app for texting that comes with the Iphone keeps crashing what should i do?

    Have you tried any of the Basic Troubleshooting Steps...
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If so... What were the Results...?

Maybe you are looking for

  • Battery charge issues

    I have troubleshooted for several days with little resolution. My 30gb Ipod will not charge fully. I am connected to a USB with AC adapter to provide additional power. When the Ipod is connected to either the port or directly with firewire the chargi

  • Key photo missing after iPhoto froze

    My iphoto froze while I was organizing photos.  I had to force quit.  When I opened it back up about 10 key photos were missing and I couldn't get them to show up.

  • Logs --reorganize

    when system logs are full how reorganize them?which file contains all the logs at OS level?

  • Layout page shifted in IE 6.0

    Please I need some help! My site looks good in all browsers except in IE 6.0. Content of the page is shifted all the way to the bottom.. Have no idea why.. Been trying to figure this out for the last 2 days! Any suggestions are welcomed. Thanks! Link

  • Quicktime .mov... Audio plays way too fast.

    I have a Quicktime video http://www.plymouthbrethren.org/flash/MacDmemo2-2-320x240x30FPS.mov which plays the Audio portion like Alvin and the Chipmunks. The original was created in Adobe Premiere Elements @ 29.xxx FPS, under Windows XP Pro. (It did t