true. The lines I need to m...">Geek Answers HandbookString Regular Matching in ErlangHow do I execute regex in Erlang?All I know is: f ("AAPL" ++ Inputstring) -> true.The lines I need to match are "AAPL, 07-May-2010 15: 58,21,34,21,36,21,34,21,35,525064 \ n"In Perl regex: ^ AAPL, * (or something similar)In Erlang?+5string regex erlangportoalet May 13, '10 at 15:44source share1 answerUse a module re, for example:... String = "AAPL,07-May-2010 15:58,21.34,21.36,21.34,21.35,525064\n", RegExp = "^AAPL,*", case re:run(String, RegExp) of {match, Captured} -> ... ; nomatch -> ... end, ... +73lectrologos May 13, '10 at 16:03source shareMore articles:NHibernate + Paging + Order - repositoryusing function C in C # - cGame Level Representation (format) - c ++Regex to check if exact string exists, including # - phpКак найти разницу между временами в разных часовых поясах в Python? - pythonRegex, чтобы проверить, существует ли точная строка - phpWhy does Chrome ignore my CSS selector? - cssreadline-like library for java - javacapybara selenium and javascript Destroy - ruby-on-railsWhy does this expression not work? JSF - javaAll Articles
How do I execute regex in Erlang?
All I know is: f ("AAPL" ++ Inputstring) -> true.
The lines I need to match are "AAPL, 07-May-2010 15: 58,21,34,21,36,21,34,21,35,525064 \ n"
In Perl regex: ^ AAPL, * (or something similar)
In Erlang?
Use a module re, for example:
re
... String = "AAPL,07-May-2010 15:58,21.34,21.36,21.34,21.35,525064\n", RegExp = "^AAPL,*", case re:run(String, RegExp) of {match, Captured} -> ... ; nomatch -> ... end, ...