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

Re: Detect content of tags

  •  03-07-2007, 8:57 AM

    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 

View Complete Thread