I would like to come back to an old message [1] posted here, back in
2007:
>> Haxe compiler 1.10 throws "invalid escape sequence" at the following
>> string escape sequences
>>
>> \f
>> \b
>> \v
>>
>> but this are valid escape sequences in javascript and I need to use them
>> in haxe (flash) for some communication and data conversion to the dojo
>> javascript framework
>>
>> is this a bug in haxe or does there exist a way to create strings which
>> accept this escape seqeunces ?
>
> This is not a bug, simply a choice not to include these rarely used
> sequences. Try using the following instead :
>
> \x09 for \b
> \x0B for \v
> \x0C for \f
If I understand the rationale for \b, I think the decision
above should be reverted for \f for \v. \f is ubiquitous when you start
writing a parser of some arbitrary language, whether your parser
is based on regexps or not. \v is super-common too.
[1]
http://lists.motion-twin.com/pipermail/haxe/2007-January/005765.html
</Daniel>