guitardave78
Programmer
Hi all.
I have the following 2 expressions
/.*?-reviews~([^~]*).*\.htm
/.*?-reviews~([^~]*)~([^~]*).*\.htm
These match up to the following strings
/sam-and-max-reviews~10.htm
and
/sam-and-max-reviews~10~PC.htm
These are then used in replaces using $1 $2 etc
Is there a way to combine the expressions
I thought that
/.*?-reviews(?:~([^~]*)){0,3}.*\.htm
May do it, but I only have access to the last match using the $1 group
Any ideas?
}...the bane of my life!
I have the following 2 expressions
/.*?-reviews~([^~]*).*\.htm
/.*?-reviews~([^~]*)~([^~]*).*\.htm
These match up to the following strings
/sam-and-max-reviews~10.htm
and
/sam-and-max-reviews~10~PC.htm
These are then used in replaces using $1 $2 etc
Is there a way to combine the expressions
I thought that
/.*?-reviews(?:~([^~]*)){0,3}.*\.htm
May do it, but I only have access to the last match using the $1 group
Any ideas?
}...the bane of my life!