Min Su Sun Posted December 8, 2023 Share Posted December 8, 2023 hello.I created a method to dynamically change the base64 image file in the textarea by referring to the URL below.1. https://community.spotfire.com/s/article/How-to-Dynamically-Change-Images-in-TextArea-in-TIBCO-Spotfire-Using-IronPython-Scripting2 . https://community.spotfire.com/s/question/0D54z00007mxYiFCAU/changing-image-dynamically-in-text-area-in-spotfireThere are two base64 images in HTML, and I coded them in ironpython by referring to the URL above.However, among the two images, only the first of the two images returned in the Regex.Match function returned a normal result.There was no return value for the second image.If there is a problem with the script, please let me know the correct method.I will attach a screenshot of the relevant information. thank youironpython_script.bmp Link to comment Share on other sites More sharing options...
Fredrik Rosell Posted December 15, 2023 Share Posted December 15, 2023 Hello,Looking at https://learn.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.match?view=netframework-4.8"This method returns the first substring found in input that matches the regular expression pattern. You can retrieve subsequent matches by repeatedly calling the returned Match object's NextMatch method. You can also retrieve all matches in a single method call by calling the Regex.Matches(String, String, RegexOptions) method."So e.g. consider using NextMatch for subsequent matches. I did a quick test and that seemed to work as intended. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now