Use the starts with selector
$('input[name^="pages_title"]').each(function() {
alert($(this).val());
});
jsfiddle example
Note: In agreement with @epascarello that the better solution is to add a class to the elements and reference that class.