Marking over multiple lines.
-
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
-
not 100% sure but are you looking for a regular expression like this ?
(?s)class="Action1".*?(?=</property)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login