Hi all, I’m stuck.
I have the followig text:
[Page 14](highlights://Predicting%20the%20Adoption%20of%20Self-Protections%20of%20Online%20Privacy-%20A%20Test%20of%20an%20Expanded%20Theory%20of%20Planned%20Behavior%20Model#page=14) > An empirical study was conducted to examine the social > psychological processes that may influence an individual’s > adoption of online privacy protection strategies.
I want to create a stamp that extract the page number between the [ ] and put it in $PageNo, the URL between the ( ) and put it in $URL and then remove the “>” [ ] and ( ) and \n and leave the rest in $text.
I have the RegEx to get the parse the page number, (?<=[)(.?)(?=]), and the URL, (?<=()(.?)(?=)). I can’t use .replace, because that does the opposite of what I want. I just wan to grab this text and put it in the attribute. I’m guessing I could use a combination of .following and .replace to clean up the rest.
Can anyone help? I have a couple hundred of these blocks, so I need to automated it with explode and a stamp.