May 20 2024 01:54 PM
Hi, Microsoft, 365 Insiders!
Calling all Excel enthusiasts! We're excited to introduce three new functions that use Regular Expressions to help parse text more easily: REGEXTEST, REGEXEXTRACT, and REGEXREPLACE.
Jake Armstrong, Product Manager on the Excel team, takes a look at and shares insights on each powerful function in our latest blog: New Regular expression (Regex) functions in Excel
Thanks,
Perry
Perry Sjogren
Microsoft 365 Insider Social Media Manager
Become a Microsoft 365 Insider and gain exclusive access to new features and help shape the future of Microsoft 365. Join Now: Windows | Mac | iOS | Android
May 25 2024 12:55 PM
Why wasn't this blog duplicated in Excel blogs in this resources? Now all discussions related to that new functionality are in comments to 2-years old blog https://techcommunity.microsoft.com/t5/excel-blog/announcing-new-text-and-array-functions/ba-p/31860.... Or went out of MTC.
May 25 2024 02:51 PM
May 25 2024 07:10 PM
May 25 2024 07:24 PM - edited May 25 2024 07:42 PM
@Sergei Baklan @PerrySjogren_@JoeMcDaid
Hi Perry / Jake
Why not introduce a RegexPattern function which can refer a cell and tell us the Regex pattern used there. It can work like CHAR() and CODE() works. One can find the regex pattern of the text to be found and then use that pattern in other Regex functions to get the desired results.
Kanwaljit
May 29 2024 05:55 AM
But used pattern is not hided. It is within the cell, or text within REGEX..., or returned by some function. In any case it's available.
May 29 2024 02:03 PM
The actual purpose of such a function is to find the Regular Expression which need to used to get the format like that.
E.g., RegexExtract(B2, "[A-z]+ [A-z]+",1) is required to find the name Sonia Rees from text given in Cell B2
What RegexPattern() intends to do is that If I Type Sonia Rees in Cell B1 and then use the formula RegexPattern(B1) in Cell C1, it gives me the Result "[A-z]+ [A-z]+"
Here any non-technical person can make use of the Other Regex functions efficiently because we don't even have to search anywhere else for the pattern expressions.
Just Like =CODE("x") gives us the value 120 and we can use =Char(120) to generate x
Regards
Kanwaljit
May 30 2024 02:52 AM
I see. Looks like RegEx generator. Not simple task.