Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » html
Showing page 1 of 5 (45 total posts)
  • Problem filtering HTML with a negative lookahead construct

    Hi, I have hundreds of links on a website that were manually programmed in HTML as hyperlinks. Our designer informed me that they shouldn't be links, so rather than line by line remove the <A> element from my code I'm looking to use the Regular Expression search and replace function within my development IDE to resolve this issue ...
    Posted to Construction Advice (Forum) by Integralist on September 28, 2009
  • Replace matches in HTML

    I'm trying to find words in HTML that are between tags using PHP (v5.2.6) preg_replace. The following rules apply to the matches full word match only (can also be matched when adjacent to non-word characters such as commas, parenthesis, periods, question marks, exclamation marks, percentage, dollar signs) e.g. "test" would ...
    Posted to Construction Advice (Forum) by mrboskits on July 16, 2009
  • How to get the html comment at the end of the string (if there is any)

    Hi, I have for example the following string: <!-- google_ad_section_start -->Some text bla bla!<!-- google_ad_section_end --> Now I need a regex to only find the last comment, but only if the string ends with a comment (maybe followed by some white spaces). If there is somebody asking for the sense of this, I need to add a read more ...
    Posted to Construction Advice (Forum) by ositoblanco on July 1, 2009
  • Get data between HTML tags [VB.NET 2008]

    Hi, im new to regular expressions, and have a questions. How do i go about getting data between HTML tags ? eg:   <pos>1234.000 2345.000 567.000</pos>   I've tried both of these: ^\Q<b>\E[\d\w\s]+\Q</b>\E and  (?>=^|>)[^><]+?(?=<|$) , But neither of them work how i need them to. The ...
    Posted to Construction Advice (Forum) by ChrisYuki on May 24, 2009
  • Regular expression to match XHTML tags that aren't closed properly

    Hello! I'm using PHP and I need to find all the XHTML tags that aren't closed (or open) properly in a text. For example, in this text I need to match the tag <strong> to remove it: <p>This is an <strong>error</p> I thought it would be easy, just an assertion-related problem, and I created this ...
    Posted to Construction Advice (Forum) by Sanva on December 24, 2008
  • [PHP] Regex to paste templates

    Hello RegexAdvice users. I am at this time trying to update my template system, and i have desidet to use regex insted of ALOT of explodes :D I this i will start out with showing you what my templates look like. code:<html> <head> <title>Some test</title> </head> <body>    <php:if ...
    Posted to Construction Advice (Forum) by doomstone on November 6, 2008
  • Extracting data from HTML table, solving greediness problem

    I hoped that the answer to my last question would be enough of a hint to solve the following problem but I still don't get it how to negate a part of the expression or maybe there is a better solution... Still using PCRE in PHP. I'm parsing an html document. My goal is to extract some data from a table that meets certain conditions: - id ...
    Posted to Construction Advice (Forum) by schnizZzla on October 6, 2008
  • Searching up to a specific character

    I'm editing an old bookmarks.html file in Dreamweaver to prep it before I import the bookmarks back into Firefox. An example bookmark would look like this: <DT><A href="http://isohunt.com/" ADD_DATE="1125111393" LAST_VISIT="1207867025" ...
    Posted to Construction Advice (Forum) by opticsnake on August 6, 2008
  • regex advice - match name of the html file

    Hi, can anybody help me with regex to match this: http://www.google.com/level1/name.html so something like match all between last ocurance of "/" and ".html"   Thanks in advance, Cash p.s. sorry on noob question :)
    Posted to Construction Advice (Forum) by cash_hr on July 15, 2008
  • parsin html by using regex in c#

    <meta name="keywords" content="IBM 7976KAG SYSTEM X3400 QC 1.60GHZ 2GB 3X73,sunucular, server, markalı sunucular, markalı server, hp sunucular, hp, ibm, ibm sunucular, ibm server, century server, century sunucular"> <meta name="description" content="Fiyat:1879$+KDV | Kdv Dahil:2.877,95YTL | Havale ile %3 ...
    Posted to Construction Advice (Forum) by caglar26 on April 27, 2008
1 2 3 4 5 Next >