I have an application that reads a string and needs to detect parameters contained in the string. The parameter has the following pattern <<<.texto>>>
( <
and >
are part of the parameter).
I was able to make an expression to capture the correct parameters. But it is also necessary to identify the incorrect parameters (errors caused when typing by the user). Eg: <texto>>>
, <<Texto>>>
, Texto>>>>
and so on.
Expression for the correct parameters: (\<{3}(\w+)\>{3})+
Can anyone help me?