07-21-2023, 04:07 PM
I am very new to the regular expression arena. Recently I searched for a regular expression for Powershell that allows me to match a html tag <table> and I found the following in this site.
$content -match '(?s)<table[^>]+width\s*=\s*"300px"\s*.*?>(.*?)</table>'
I have been looking for all regular expressions references and books (Perl and Powershell) for the meaning of (?s) with no luck. It looks like a condition but missing the then part.
Can someone point me to the right direction for the meaning of this?
Thanks
$content -match '(?s)<table[^>]+width\s*=\s*"300px"\s*.*?>(.*?)</table>'
I have been looking for all regular expressions references and books (Perl and Powershell) for the meaning of (?s) with no luck. It looks like a condition but missing the then part.
Can someone point me to the right direction for the meaning of this?
Thanks