I am learning Swift, and I have (another) question. Are there regular espressions in Swift, and, if so, how do I use them?
In my research, I found some conflicting information. Apple Developer documents has something mentioning RegEx, but it looks so different than any other language i've seen. If this is the solution, how do I use it?
This website, on the other hand, suggests that RegEx doesn't exist in Swift. Is this correct?
In case it helps, I am trying to use regex to get the average price of a bitcoin from JSON-style API that contains the price, but also a lot of stuff I don't want.
Sorry for another basic question.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…