MrCBofBCinTX
Technical User
I am having trouble figuring out the right regex for this.
I have:
I am trying to find lines that meet the requirements for a product description. Those lines may hold any alphanumeric and most punctuation characters.
The correct line is s.prop1="Stuff here";
"Stuff here" does often contain " and ;
I am getting an incorrect match if I include both ; and " in the character class, often getting to much stuff after ending ";
I have no control over these web pages, so I just have to work with what the vendor has online.
An example line is as follows:
I have:
Code:
if ($line =~ /s\.prop1="([\w\s,.-\/i"'+\(\)&%#=:]+)";/) {
I am trying to find lines that meet the requirements for a product description. Those lines may hold any alphanumeric and most punctuation characters.
The correct line is s.prop1="Stuff here";
"Stuff here" does often contain " and ;
I am getting an incorrect match if I include both ; and " in the character class, often getting to much stuff after ending ";
I have no control over these web pages, so I just have to work with what the vendor has online.
An example line is as follows:
Code:
s.prop1="Economy Tile Installation Kit; One V-Notch Trowel, One Square Notch Trowel, One Grout Squeegee";