I’m trying to match and strip out the following content using preg_match_all()
1. content1, content2<br>
2. content1, content2<br>
3. content1, content2<br>
4. content1, content2<br>
I’d like to strip out ‘content1’ and ‘content2’ from each line… any help is appreciated.
I’m new to regex but I gave it a shot…here is the pattern I have sofar (doesn’t work yet but it’s a start)
$testPattern = '/^[0-9]\.(.*),(.*)<br>$/';