How can i get substring of a subpattern?
Saying I've got "\1", how can i get the first letter or second letter of it?
or characters from the second letter to its length.
or characters from the second letter to its length.
Reply to #1:
Change your regex to return just the characters you want. If you want a more specific reply you will need to provide examples of what you are trying to achieve.
Change your regex to return just the characters you want. If you want a more specific reply you will need to provide examples of what you are trying to achieve.
Reply to #2:
i see, that's kind of annoying though.
would be much more comfortable if i could take a substring from the sub pattern.
i used your solution though since there's no other way apparently.
i see, that's kind of annoying though.
would be much more comfortable if i could take a substring from the sub pattern.
i used your solution though since there's no other way apparently.
Reply to #3:
It is straightforward to extract a substring - but you will need to use JavaScript in a Script method.
It is straightforward to extract a substring - but you will need to use JavaScript in a Script method.
Reply to #4:
but then you'd need to recreate the method too no?
but then you'd need to recreate the method too no?