What "Repeat from *" Really Means: Asterisks, Brackets, and Repeats
Repeats are how a designer writes a 120-stitch row without typing 120 instructions. The punctuation tells you which stitches to do again, how many times, and what happens at the edges. Once you can parse a line with an asterisk and a bracket, you can knit almost any written row.
The asterisk: go back and do it again
The most common form looks like this, from a made-up Harbor Cowl:
Row 3 (RS): k3, *p2, k2; repeat from * to last 3 sts, k3.
You knit 3 stitches, then you work p2, k2 over and over until only 3 stitches remain, then you knit those 3. The asterisk marks the start of the repeated sequence. "Repeat from *" means you return to that mark, not to the beginning of the row.
A close cousin is repeat from * to end. In that case there are no leftover stitches after the last full repeat. If you have stitches left that are not enough to work another full repeat, you have either started the repeat in the wrong place or miscounted the edge stitches.
Brackets and parentheses: a repeat with a number
When the designer wants the sequence a fixed number of times, you will usually see brackets or parentheses and then a multiplier:
[k2, yo, k2tog] 4 times (k1, p1) 3 times
Those two notations mean the same kind of thing: work the stitches inside, then do the whole group again, for a total of 4 (or 3) times. Brackets are handy when parentheses are already being used for sizes.
You can nest them, though good patterns keep this as shallow as they can:
k2, *p1, [k2, p2] 3 times, p1; repeat from * to last 2 sts, k2.
Read from the inside out. In each starred repeat you purl 1, then work k2, p2 three times, then purl 1, and only then do you return to the asterisk.
"Repeat rows 1-4" is a different kind of repeat
Stitch-pattern repeats happen across a row. Row repeats happen up the fabric. Repeat rows 1-4 until the piece measures 6 in / 15 cm, or work rows 1-8 of Chart A three times, means you go back to row 1 (or the first chart row) after you finish the last row in the set.
Keep the two ideas separate when you count. You might work a 6-stitch repeat 20 times across a row, and also work a 4-row repeat 12 times up the piece. Markers help with the first. A row counter or a tally mark helps with the second. See How to Annotate and Track a Pattern.
How to know the repeat fits
Before you start a dense row, do a little arithmetic. Add the edge stitches (the stitches before the first asterisk or bracket, and the stitches after the last repeat) to the width of the repeat times the number of repeats.
Example, from a made-up Willow Vest, in a 4-stitch rib:
k1, *p2, k2; repeat from * to last 3 sts, p2, k1. 97 sts.
The edge is k1 at the start and p2, k1 at the end (4 stitches in total). That leaves 93 stitches for a 4-stitch repeat, which does not divide evenly. That would be a warning, except look again: the repeat is p2, k2 (4 stitches), and 93 is not a multiple of 4. In a real pattern that would be a red flag, and you would reread the line.
A corrected version of the same idea:
k1, *p2, k2; repeat from * to last 4 sts, p2, k2. 97 sts.
Start 1, repeat 4, end 4: 1 + 4 + 4 = 9, which is not 97 either. Let's do it properly:
97 sts. k2, *p2, k2; repeat from * to last 3 sts, p2, k1.
Start 2, end 3, remaining 92, which is 23 repeats of 4. That fits. This is the check you do in the margin: start + (repeat width × times) + end = the stitch count on the needle. If it does not equal, do not start the row until you see why. You may have the wrong size's count, or a typo, or you may be mid-shaping.
(The first two "almost" lines above are here on purpose, as the kind of near-miss that happens when you parse a row too quickly. Always finish the arithmetic.)
What "rep from * to last st, end k1" is telling you
Sometimes the last repeat is truncated so the row can start and end the same way (useful in ribbing and in some lace). The pattern will say end last repeat with... or on the last repeat, skip the final yo, or similar. You work every repeat in full except the last one, which gets a different ending. It is easier to mark the last repeat with a marker so you remember to change the ending only once, at the end.
Asterisks versus the chart's repeat box
A boxed section on a chart is the same idea as the stitches between two asterisks. Edge stitches sit outside the box, just as they sit outside the asterisks in the written row. If you have both a chart and written instructions, confirm that the boxed width and the starred sequence are the same number of stitches.
When a row is one long nest of brackets, it is reasonable to want it written as a simple checklist. Upload a pattern you own to Read My Pattern and you can get a free row-by-row version with the repeats expanded for your size, plus a stitch count at the end of the row so you know the arithmetic held.