The regex expression works when i use it in this site; https://regexr.com/ (which is the site i’ve used to try and learn regex and cobble this expression together lol) so im a little confused why it won’t work in gdevelop
When I tried testing your expression, I noticed the \ was causing a problem. GD seems to treat them as a special character or something. I checked the forum and someone said that when using \ you need to 2 slashes \\ or a single /
That works, thanks!
Though you wouldn’t happen to know if there’s a way of wrapping the text found by the regex with bbcode tags somehow? I’m realizing now that this regex method might not work for what I was trying to do (was experimenting with a text accessability option inspired by Bionic Reading), but I don’t really understand the regex extension enough yet to be sure if im barking up the wrong tree or not
I don’t know the exact code or if you need to use 2 RegEx expression or you can reword your expression. You just need to place your text between opening and closing tags.
What logic are you using to decide which letters need to be bold?
I did consider that method, but I hoped I’d be able to do it in a less manual way. The game I’m working on is a text-heavy narrative game so to have to add bbcodes to every single word would simply be too much work.
The logic would be that regex expression, basically to find the first 3 letters of each word in a text. But I guess you can’t inject bbtags around each snippet found by the regex?
It’s not a critical feature so its not a big deal if i can’t make it, honestly I was mainly curious to see if it was a possibility