@manhng

Welcome to my blog!

Regex

September 12, 2018 13:28

Regex (edit)

https://laptrinhvb.net/bai-viet/chuyen-de-csharp/Huong-dan-tach-so-ra-khoi-chuoi-su-dung-Regular-Expression--Csharp-/b7bd559e9ae9bd63.html

string input = "[1,2,3,4,5,99]";
Regex regexObj = new Regex(@"(\d+)([^0-9]+)", RegexOptions.IgnorePatternWhitespace);
Match match = regexObj.Match(input);
while (match.Success)
{
    Console.WriteLine(match.Groups[1].Value);
    match = match.NextMatch();
}

https://viblo.asia/p/tim-hieu-ve-xu-ly-chuoi-bang-regex-phan-cuoi-vyDZOQz75wj

https://viblo.asia/p/tim-hieu-ve-xu-ly-chuoi-bang-regex-phan-ii-YWOZrMYRKQ0

Regular Expression

August 28, 2018 17:52

Regular Expression - C#

http://blog.loadimpact.com/blog/regular-expression-in-the-real-world/

Regular Expression - JavaScript

https://blog.pragmatists.com/top-10-es6-features-by-example-80ac878794bb

http://2ality.com/2011/04/javascript-overview-of-regular.html

http://2ality.com/2015/07/regexp-es6.html

http://exploringjs.com/es6/ch_regexp.html

https://www.sitepoint.com/es6-string-methods-string-prototype/

Regular expression literal:
var regex = /xyz/;
(compiled at load time)

Regular expression object:
var regex = new RegExp("xzy");
(compiled at runtime)

JavaScript RegExp:

RegExp.prototype.test()

RegExp.prototype.search()

RegExp.prototype.replace()

RegExp.prototype.match()

RegExp.prototype.exec()

JavaScript String:

String.prototype.search()

String.prototype.replace()

String.prototype.match()

String.prototype.split()

Categories

Recent posts