You are not logged in.
Pages: 1
Hi!
Please den4b could you explain us how to use named groups for regular expressions in the script editor?.
I was looking for the proper syntax but I didn't found it, also I'm not sure if the scripts runs under pascal-script limitations, or Delphi/object-pascal limitations, could you clarify this too?.
How I could name a simple group like this?:
str := "Hello World"
rgxPattern := '(Hello)'
rgxReplace := '$1 World'
Thankyou.
Last edited by Elektro (2016-02-21 19:00)
Offline
Named groups are not supported by the current RegEx engine.
You can only reference groups by their index, i.e. $0, $1, $2, etc.
Reference: ReNamer:Regular_Expressions
Offline
Pages: 1