MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB技术文章 (https://www.labfans.com/bbs/forumdisplay.php?f=25)
-   -   Stressed When Searching for Strings? - Loren on the Art of MATLAB (https://www.labfans.com/bbs/showthread.php?t=27097)

poster 2021-04-24 17:42

Stressed When Searching for Strings? - Loren on the Art of MATLAB
 
[IMG]https://blogs.mathworks.com/wp-content/themes/mathworks_1.0/images/placeholder_5.jpg[/IMG]
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 [URL="https://www.mathworks.com/help/matlab/ref/regexp.html"]regexp[/URL] make you sweat?

Well worry no more! Many of your searches may now be done more easily using the new [URL="https://www.mathworks.com/help/matlab/ref/pattern.html"]pattern[/URL] 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 [URL="https://blogs.mathworks.com/pick/2020/10/15/r2020b-pattern-new-way-to-regular-express"]Pick of the Week[/URL].

Contents[URL="https://www.labfans.com/bbs/admincp/#a1486765-4226-4b74-8be0-be7fd0dd7958"]Example 0: For Those Who Love regexp[/URL]>

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

[url=http://feedproxy.google.com/~r/mathworks/loren/~3/UNJeozQ-C_E/]More...[/url]


所有时间均为北京时间。现在的时间是 23:13

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.