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

Browse by Tags

All Tags » regex » find replace
  • RegEx Help - Replacing hrefs

    OK. Stick with me here. It is going to take me a few to explain this. I am writing a small application in VB.NET. The ultimate task is to make a web browser, within a web browser. Basically, You open IE, FireFox, Safari, or whatever browser you like and go to the web application I am building. At the top of the web page, I have a tool bar, ...
    Posted to Construction Advice (Forum) by TampaWebDevelopment on June 27, 2007
  • Re: Detect content of tags

    Ok, so you will not be using groups. In that case you can use lookahead and lookbehind with this regular expression. (?<=((<[^>]*>)[^<>/]*))(padding)(?=([^<>/]*(</[^>]*>))) It will let you replace the word specified in the middle. Brendan 
    Posted to Construction Advice (Forum) by Brendan on March 7, 2007
  • Re: Detect content of tags

    Give this a shot. (<[^>]*>)[^<>/]*(padding)[^<>/]*(</[^>]*>) Same trick as before the middle group is what you want to replace each time. First and Third groups are the html tags around content. Any word you want to find can be put into that middle ...
    Posted to Construction Advice (Forum) by Brendan on March 6, 2007