UDL- Recognize Any 32 Characters Surrounded by Commas
-
Hello. Trying to define a new language. Here is an example line:
[frame0]<tile>30,64802A40C8D094A040800A40C8909080,0F0F0516,0,8,1,Y
I would like to have the 32 character entry (in bold here), be recognized. The 32 characters change depending on “reasons”, but are always numbers and letters {it’s a 32 character hexadecimal string).
So, Is there a way to define “any 32 characters that is surrounded by commas”?
Thanks for any help!
-
@TM-S ,
That is beyond the simple keyword matching of UDL alone, sorry.
However, if you define everything else in UDL, you could use the EnhanceAnyLexer plugin to add foreground-color changes on any text that matches a regular expression, which could be
\b[0-9A-F]{32}\b -
@PeterJones Thank for the fast response! I will give that a try.
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