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 » lookbehind » find replace
  • 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