SyntaxFix
Write A Post
Hire A Developer
Questions
If you really mean any and ASCII (not e.g. all Unicode characters):
xxx[\x00-\x7F]+xxx
JavaScript example:
var re = /xxx[\x00-\x7F]+xxx/; re.test('xxxabcxxx') // true re.test('xxx???xxx') // false