I used regex matches output= ienMatch , then write line= ienMatch(0).Value.
error = Write Line: Object reference not set to an instance of an object
don’t know what I did wrong. the regex is settled right.
I used regex matches output= ienMatch , then write line= ienMatch(0).Value.
error = Write Line: Object reference not set to an instance of an object
don’t know what I did wrong. the regex is settled right.
The error indicate that the variable is empty,
Can you please provide the input string and the regex pattern youbare using…thanks
Titel: Nee/ja of nee/nee sticker aanvragen
Indieningsdatum: 09-04-2021 15:18
Ik wil aanvragen
Nee/ja sticker (geen ongeadresseerde reclamedrukwerk maar wel huis-aan-huisbladen)
Nee/nee sticker (geen ongeadresseerde reclamewerk en geen huis-aan-huisbladen)
(?<=huisbladen[)]\s)\w{3}/\w{3}
hi @Nightowl_music - which word you are tryin to extract?? i tested your expression and it didn’t returned anything that’s why you are facing the error…
@Nightowl_music - I guess…you are looking for this right??
if yes, then try this…
(?<=huisbladen[)]\s\r?\n?)\w{3}/\w{3}
Hope this helps…
Update: Your expression also working fine…
yes! this is right, thanks for sharing the result. it actually worked in regex101 when I used the regex expression.
regex is working but still get the error.
Write Line: Object reference not set to an instance of an object.