--- 1 ---
I need to execute a regex against a string, and retrieve values of the groups.
E.g.:
regex: ^(?[0-9]+)Z(?[A-Z\.])$
string: 003ZAS.S
expected result:
group 1: 003
group 2: AS.S
match function will do that, but it requires extensions, is there a way to do it without using extensions?
--- 2 ---
Specifically, I need to parse version in format:
<major>.<minor>.<build>.<revision>
Split works just fine, but I would like to do it with regex instead.
--- 3 ---
What is the "nice" way of parsting this string?
Regards,
Roman V. Gavrilov
I need to execute a regex against a string, and retrieve values of the groups.
E.g.:
regex: ^(?[0-9]+)Z(?[A-Z\.])$
string: 003ZAS.S
expected result:
group 1: 003
group 2: AS.S
match function will do that, but it requires extensions, is there a way to do it without using extensions?
--- 2 ---
Specifically, I need to parse version in format:
<major>.<minor>.<build>.<revision>
Split works just fine, but I would like to do it with regex instead.
--- 3 ---
What is the "nice" way of parsting this string?
Regards,
Roman V. Gavrilov