Randy Role 1 Posted August 20, 2012 Report Share Posted August 20, 2012 Hey guys, I'm having issues scraping the site name in google analytics. I managed to remove the [DEFAULT], but when it saves the data into a file, I see a weird  at the end, following with a space after it. what I'm using is this: \w.+\s Any help would be appreciated. Thanks! Quote Link to post Share on other sites
Praney Behl 314 Posted August 20, 2012 Report Share Posted August 20, 2012 Try this: (/[^\w\s]/gi, '') 1 Quote Link to post Share on other sites
Randy Role 1 Posted August 20, 2012 Author Report Share Posted August 20, 2012 Try this: (/[^\w\s]/gi, '') thanks for the help bud, but I managed to help myself :-) I used this: ([A-Za-z0-9.]+)(?=\s\[DEFAULT\]) 1 Quote Link to post Share on other sites
Praney Behl 314 Posted August 20, 2012 Report Share Posted August 20, 2012 np Quote Link to post Share on other sites
UBotBuddy 331 Posted February 14, 2013 Report Share Posted February 14, 2013 This thread is a little old but I think there may be a few people learning Regex that might benefit from this update. Getting rid of non-Ascii characters can be a real pain. Especially if you are trying to use the non-whitespace or non-word characters.Both of these work:[^ \t-~]My favorite is this one and it is using the hexidecimal range.[\x80-\xFF] Buddy 2 Quote Link to post Share on other sites
JackCrow 4 Posted February 16, 2017 Report Share Posted February 16, 2017 Could someone show this Regex how it would look within Ubot? I know nothing about Regex and I really need to get rid of these damn hidden characters. Thank you. Quote Link to post Share on other sites
JessicaLynn 3 Posted March 15, 2017 Report Share Posted March 15, 2017 Set variable with hidden characters. For new value use replace regex command. Pattern to find is regex, replace with nothing. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.