Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Marking over multiple lines.

    Help wanted · · · – – – · · ·
    2
    2
    378
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Richard Cranium
      Richard Cranium last edited by Richard Cranium

      I am looking to replace code over multiple lines, just trying to mark the lines that need to be replaced
      here is a sample of what needs changing

      [not sure how to use markdown here]
      [CODE]<property class=“Action1”>
      <property name=“Class” value=“PlaceAsBlock” />
      <property name=“Delay” value=“0.5” />
      <property name=“Blockname” value=“plantedAppleTree1” />
      </property>
      [/CODE]

      my search string (mark lines) I’m trying is

      class=“Action1” .* /property

      since I want to replace everything in between

      Eko palypse 1 Reply Last reply Reply Quote 0
      • Eko palypse
        Eko palypse @Richard Cranium last edited by Eko palypse

        @Richard-Cranium

        not 100% sure but are you looking for a regular expression like this ?
        (?s)class="Action1".*?(?=</property)

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors