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: *

  • Users: dleathe07
  • Content: Threads
  • Order by date
  1. 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