Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. dleathe07

    Regular Expression- contextual replacement

    Nvm, I figured it out. Thanks anyways.
  2. dleathe07

    Regular Expression- contextual replacement

    Not school work, not sure why you'd think that. The regexp I posted was just the general idea. I'm no beginner with regular expressions. I'm looking for the general method of preforming replacement selectively, or maybe nested regexp. I was hoping one of the Perl experts here would know, or...
  3. dleathe07

    Regular Expression- contextual replacement

    Hi, would it be possible to match a chunk in a file, and then replace only a portion (a phrase) of it? For example: $a = "<start>op3 and op and op2</start>" I need to do things sequentially: 1. Match <start>.+?</start> 2. Replace "op" contained with "op1" The end result should look like: $a...

Part and Inventory Search

Back
Top