ASCIIString
no longer exists in Base, so you are apparently using code from Julia 0.4 or earlier — it will need to be updated in several ways, probably. Just use the String
, k.captures[1]
. If you need to check that it is ASCII, use isascii
. In the rare cases where you actually need an ASCIIString
type, you can use the LegacyStrings package.
Note that to upgrade code from an “ancient” version like Julia 0.4, it is best to first upgrade it to Julia 0.5, then upgrade it to Julia 0.6. This way, you will get helpful deprecation messages rather than simply errors.