Extracting a substring using regular expression matching - IBM
文章推薦指數: 80 %
You can use regular expression matching to retrieve a single substring or all substrings from a string. To extract a single substring, you use the RExtract ... IBMTivoliNetcool/Impact,Version6.1.0.4. Extractingasubstringusingregularexpressionmatching Youcanuseregularexpressionmatchingtoretrieveasingle substringorallsubstringsfromastring. Toextractasinglesubstring,youusetheRExtractfunction. TheRExtractfunctiontakesastringandaregular expressionspatternasinputparameters.Itreturnsthefirstmatching substringthatitfindsinthestring. Toextractallmatchingsubstrings,youusetheRExtractAllfunction. AswithRExtract,TheRExtractAllfunction takesastringandaregularexpressionspatternasinputparameters. Itreturnsanarraythatcontainsallthematchingsubstrings.
延伸文章資訊
- 1REGEXP_SUBSTR
- 2Extracting a substring using regular expression matching - IBM
You can use regular expression matching to retrieve a single substring or all substrings from a s...
- 3Regular Expression Syntax Reference
Example1: When pattern "\d\d" matches "abc123", match result: success; substring matched: "12"; p...
- 4How to extract a substring using regex - java - Stack Overflow
While substring looks for a specific string or value, regex looks for a format. It's more and mor...
- 5Simple RegEx Tutorial
Simple RegEx Tutorial. Regular Expression can be used in Content Filter conditions. Regular Expre...