I am trying to create a regex that matches percentage for marks
For example if we consider few percentages
1)100% 2)56.78% 3)56 78.90% 4)34.6789%
\\d+(?:\\.\\d+)?%
This should do it for you.
For more stringent test use,
\b(?
See demo.
https://regex101.com/r/zsNIrG/2