Hi friend
Can u expline what u want
what the problem ?
OK I have a pragraph that looks like this:
---------
Following the Crisis on Infinite Earths story, DC began to reboot all its properties. Uniquely though, most of the Silver Age Batman stories remained canon, with DC only wishing to revisit Batman's early years. The story was followed up by Batman: Year Two, but in the 1994 Zero Hour company wide crossover, it was erased from continuity. Catwoman: Year One (Catwoman Annual #2, 1998) tied into Catwoman's scenes, stating that the character had not been a prostitue, but rather a thief posing as one to help her commit crimes.
--------
I have a list of keywords that I want to highlight in the array:
--------
array("Batman Year Two", "Catwoman Year One");
--------
What I want to do is that when the phrase "Catwoman Year One" OR "Catwoman: Year One" is found in the paragraph I am searching, I want to be able to match on either/both (if both are there) the one containing the ':' and the one without. I want to be able to do this with out breaking the phrase up before hand (say on a ':' ) and compairing every word. Is there a way, with a regular expression to do something like
find all occurences of $someVar (eg, Catwoman Year One), in the paragraph reguardless of wheither or not the version in the paragraph contains a ':'?
Does that make it any clearer?