I need to match string like:
RHS numberXnumberXnumber
contained in strings like these: (all numbers can have the decimal part or not)
foo RHS 100x100x10 foo
foo RHS 100.0x100x10 foo
foo RHS 100.0x100.0x10.0 foo
foo RHS 100x100.0x100x10 foo
foo RHS 10.0x100.0x10.0x10.0 foo
I've written this:
RHS \d+.?\d?x\d+.?\d?x\d+.?\d
but this regex match also the first groups of number of the following string: foo RHS 100x100x100x10 foo
how can I can I avoid that? basically I don't want any match if there are four groups of number