hankknight
asked on
Regex to replace <[content]>
I want to find this or any acceptable variation of it:
<[content]>
And replace it with:
xyz
This should be case insensitive and should allow ANYTHING between "content" and the brackets.
So all these should be replaced:
<[content]>
<[CONTENT]>
<[*ContenT*]>
<[ content / ]>
This must be PHP4 compatible.
<[content]>
And replace it with:
xyz
This should be case insensitive and should allow ANYTHING between "content" and the brackets.
So all these should be replaced:
<[content]>
<[CONTENT]>
<[*ContenT*]>
<[ content / ]>
This must be PHP4 compatible.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
this is one example for check if on if is valid or not.
ereg("([12]?[0-9]?[0-9].[1 2]?[0-9]?[ 0-9].[12]? [0-9]?[0-9 ].[12]?[0- 9]?[0-9])" , $dirty, $clean);
ereg("([12]?[0-9]?[0-9].[1
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window