登录论坛

查看完整版本 : Stressed When Searching for Strings? - Loren on the Art of MATLAB


poster
2021-04-24, 17:42
https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg
Do you get clammy hands when you have to search for a string pattern, not just a particular string? Does the thought of struggling with regexp (https://www.mathworks.com/help/matlab/ref/regexp.html) make you sweat?

Well worry no more! Many of your searches may now be done more easily using the new pattern (https://www.mathworks.com/help/matlab/ref/pattern.html) feature in MATLAB. And in some cases, you can get away with even less.

For today's post, my co-authors are Jason Breslau and Curtis Anderson, since they know MUCH more about regexp than me, and many more nuances about the functionality. We're going to do this by showcasing a few examples. You might also want to check out Jiro's recent Pick of the Week (https://blogs.mathworks.com/pick/2020/10/15/r2020b-pattern-new-way-to-regular-express).

ContentsExample 0: For Those Who Love regexp (https://www.labfans.com/bbs/admincp/#a1486765-4226-4b74-8be0-be7fd0dd7958)>

http://feeds.feedburner.com/~r/mathworks/loren/~4/UNJeozQ-C_E

More... (http://feedproxy.google.com/~r/mathworks/loren/~3/UNJeozQ-C_E/)