Hi,
I have a database that has a table with 2 fields; RegEx and Owner where RegEx is a regular expression of an IP address and and Owner is the text string name of the owner.
I need to be able to search through the RegEx field and match it to an IP address than return the Owner name.
Sample Table
^198\.103\.(3[2-9]|4[0-9]|5[0-3])\. || Nortel Networks
How can I get a match from an IP to a Regular Expression in SQL?
Ie.
Select Owner from TABLENAME where RegEx 'contains / equals / matches etc' '198.103.32.158'?
Is this at all possible?
Thanks in Advance.
Tyler
I have a database that has a table with 2 fields; RegEx and Owner where RegEx is a regular expression of an IP address and and Owner is the text string name of the owner.
I need to be able to search through the RegEx field and match it to an IP address than return the Owner name.
Sample Table
^198\.103\.(3[2-9]|4[0-9]|5[0-3])\. || Nortel Networks
How can I get a match from an IP to a Regular Expression in SQL?
Ie.
Select Owner from TABLENAME where RegEx 'contains / equals / matches etc' '198.103.32.158'?
Is this at all possible?
Thanks in Advance.
Tyler