Reg EX
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi All , Hope all are doing Good
"I have a dataset with information stored in a column, and I need to extract specific values using a regular expression. How can I achieve this using [REG EX Tool]? Specifically, I want to extract [LedgerNames and Company codes ] from the [LedgerMapping]. Can you please guide me on the steps or the regex pattern I should use?"
I have provided the information in the below attachment Sheet 1 is input And sheet2 is output .
ledgerMapping |
[{'ledgerName': 'Amazon.it','Amazon.com', 'companyCodes': ['4W', '5W', '6W', 'B100', 'B573', 'B7', 'B896', 'B951', 'BAIT', 'BB34', 'BC36', 'BD34', 'BM', 'E6', 'EW', 'F7', 'F8', 'F9', 'FZ', 'JW', 'KW', 'MT', 'NI', 'V2', 'X6IT']}] |
output
ledgerName | CompanyCodes |
Amazon.in | 4W |
Amazon.com | 5W |
6W | |
B100 | |
B573 | |
B7 | |
B896 | |
B951 | |
BAIT | |
BB34 | |
BC36 | |
BD34 | |
BM | |
E6 | |
EW | |
F7 | |
F8 | |
F9 | |
FZ | |
JW | |
KW | |
MT | |
NI | |
V2 | |
X6IT |
Solved! Go to Solution.
- Labels:
- Developer Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Navyasree123 This can be done using the JSON parse tool, but make sure your input data is proper JSON format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you All!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you have been helped by the suggestions above, please kindly mark them as solutions to give the authors credit and help others find the solutions to their problems!
Happy Solving!!!
