Regular request { .* }
-
Help formulate correctly search request to search all in function SkinMesh between {…}
except other function ClientAnimationController, Lights…version
extends “”ClientAnimationController
{
skeleton = “”
}SkinMesh
{
skin = “”
}Lights
{
} -
SoundEvents.\n{.*?}
-
SoundEvents.\n\{.*?\}
-
Hello, Victor,
I think that a possible solution would be :
(?s)(?<=SkinMesh\r\n)\{.+?\}Notes :
-
This first part of the regex is called a look-behind. It’s a condition that must be true, in order to valid the overall regex. but it will not be part of the final match. So the regex engine looks for the string SkinMesh, followed by the two End of Line characters CR + LF.
-
If the string, above may be found, it, then, matches an opening brace character, followed by the shortest range of any character, even on several lines, till an ending brace character
Best Regards,
guy038
-
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