Looking for a way (extension?) supporting not only match/nomatch but returning groups/subgroups as well
The nice extensions by Kevin 正则表达式插件 · 浮云小站 and Puravida Apps can not be used (lacks groups functionality).
Simplified example of data to match: "callsign:6AA1AA NOTES:13 tricky<inside QSODATE:8 20221212 <...
Simplified regexp : ^<([A-Za-z]+):(\d+)>.+
It returns 2 groups: "callsign", "6"
Then I take subsequent content ("AA1AA") and repeat.
Kevin's will just return match/no match.
Thanks @TIMAI2.
Webviewer sounds so heavy..
Rush - I'll investigate it - it's documentation will take a while .
Has anybody tried Rapid ? SO far I created simple extension that returns number but any use of list throws unspecified error while building so looks like NotImplemented yet or I still need to master it...
I've just realized < must be escaped or editor will interpret and hide, so simplified example of data to match:
"<callsign:6>AA1AA <NOTES:13> tricky<inside <QSODATE:8> 20221212 <...
Simplified regexp : ^<([A-Za-z]+):(\d+)>.+
It returns 2 groups: "callsign", "6"
Then I take subsequent content ("AA1AA") and repeat.
@Kevinkun
Regex has concept of match (whole string) and its parts and subparts within that matched string (groups). I use match to make sure that input is as expected and get token name, token lenght and maybe even token value as groups (as in regex101.com)..
Anyway thanks for prompt support and agn tnx for nice ext.
And yes it can probably acieved without groups too.