Look ahead to match +pattern+, and advance the scan pointer to the _end_
of the match. Return the number of characters advanced, or +null+ if the
match was unsuccessful.
It's similar to #scanUntil, but without returning the intervening string.
public function testSkipAndSkipUntil() { $s = new StringScanner('test string'); $this->assertEquals(4, $s->skip('/\\w+/')); $this->assertNull($s->skip('/\\w+/')); $this->assertEquals(1, $s->skip('/\\s+/')); $this->assertEquals(6, $s->skip('/\\w+/')); $this->assertNull($s->skip('/./')); $s = new StringScanner("Fri Dec 12 1975 14:39"); $this->assertEquals(10, $s->skipUntil('/12/')); }