Reputation: 2586
I cant seem to get the following regex to match. I'm having a problem with matching whats inside the {}
The regex is:
\{([\s\w|'.,]*)},\s*(\p{L}+)(.*\*\d+)
And the string to match is this:
value=subarray({'1*MyVar'}, EXCEL.x*48, 1)
value=subarray({'1/MyVar'}, EXCEL.x*48, 1)
value=subarray({'1--MyVar'}, EXCEL.x*48, 1)
value=subarray({'90000'}, EXCEL.x*48, 1)
value=subarray({'Holy Moly'}, EXCEL.x*48, 1)
https://regex101.com/r/frF0eC/3
The first 3 do not match, but the last 2 do match. Any idea how to get them to all match? Instead of using \w do I have to explicitly match all possible characters?
Upvotes: 0
Views: 78