Rinse rice in cold water 3-4 times until water runs clear. Drain well to remove surface starch that causes sticking.
2 cups long-grain rice
Combine the rinsed rice, coconut milk, water, salt, sliced ginger, tied pandan leaves, bruised lemongrass, and shallots in a medium saucepan. Bring to a boil over medium-high heat.
2 cups long-grain rice, 2 cups coconut milk, 1 cup water, 1 teaspoon salt, 1 inch fresh ginger, 3-4 leaves pandan leaves, 1 stalk lemongrass, 2 units shallots
Immediately reduce heat to low simmer. Cover the pot tightly with lid and simmer for 20 minutes without stirring or lifting the lid to ensure even cooking.
While rice cooks, heat 2 tablespoons oil in a frying pan over medium-high heat to 350°F (175°C). Fry dried anchovies for 2-3 minutes until golden and crisp. Drain on paper towels. Boil eggs for 7-8 minutes, then transfer to an ice bath immediately.
0.5 cup fried anchovies, 4 units eggs
Remove pot from heat and let rice rest, covered, for 5 minutes. Fluff gently with a fork to separate grains and remove pandan leaves, lemongrass, and ginger slices before serving.
2 cups long-grain rice, 3-4 leaves pandan leaves, 1 inch fresh ginger, 1 stalk lemongrass