last day (15 days later) » 

21:22
Let's fix this shit
ty
that was nuts in there
i understand that localstorage may not directly support RegEx
It's always like that
but i can easily do a for in loop to get all the local keys
You don't have to use .getItem()
21:23
You can do localStore['key']
That may be our trick
will it return multiple values?
I believe so
I'm confused about your example, what are you expecting to return
fair enough
lemmie see if i can clearify
Also, your regex is a bit wrong (I think)
here are two examples of some keys i want to get:
21:24
/(CP.73cd0909-8cd7-4193-96ae-7336c504cd18.)+[\s\S]{8}-[\s\S]{4}-[\s\S]{4}-[\s\S‌​]{4}-[\s\S]{12}/
oops that was a wrong key lol
You should escape the point after CL
CP.73cd0909-8cd7-4193-96ae-7336c504cd18.b953ba97-9f3b-4bac-8724-372dc6978a4d
CP.73cd0909-8cd7-4193-96ae-7336c504cd18.c2efb2af-540b-43c7-8921-d5b53232beb3
^^ those are two examples
okay, so escape after CP?
Yeah like /(CP\.73cd0909-8cd7-4193-96ae-7336c504cd18.)+[\s\S]{8}-[\s\S]{4}-[\s\S]{4}-[\s\‌​S]{4}-[\s\S]{12}/
hm ok
21:26
Ok and your dots are seperating your guid's right?
yea
and i will always know my first Guid.
it'll be passed in with a variable of course
So you still have to wrap the second series of characters in ()
21:27
`/(CP\.73cd0909-8cd7-4193-96ae-7336c504cd18.)+([\s\S]{8}-[\s\S]{4}-[\s\S]{4}-[\s\‌​S]{4}-[\s\S]){12}/`

I think
after or before the +
how does the RegEx string look when we create a new RegExp object in javascript tho?
does it put in the beginng and ending / for us?
var CPKey = new RegExp('(CP\.73cd0909-8cd7-4193-96ae-7336c504cd18.)+([\s\S]{8}-[\s\S]{4}-[\s\S]{‌​4}-[\s\‌​S]{4}-[\s\S]){12}', 'g')
^what im trying now
Yes
getting undefined with that
You don't need the slashes in that case
with localStorage[CPKey]
ok
21:29
Test your regex on its own instead of using localStorage
I find it easier to test against a string
Then, once I know my regex is working, then I plug it in
yea
so
var x = 'CP.73cd0909-8cd7-4193-96ae-7336c504cd18.c2efb2af-540b-43c7-8921-d5b53232beb3'
CPKey.test(x)
bingo
gave me false
I made a mistake
lol
21:31
/(CP\.73cd0909-8cd7-4193-96ae-7336c504cd18.)+([\s\S]{8}-[\s\S]{4}-[\s\S]{4}-[\s‌​\‌​S]{4}-[\s\S]){12}/
Should be
/(CP\.73cd0909-8cd7-4193-96ae-7336c504cd18.)+([\s\S]{8}-[\s\S]{4}-[\s\S]{4}-[\s‌​\‌​S]{4}-[\s\S]{12})/
Still not working -_-
haha
well, i need to get on the road
ill be on late tonight, i appreciate your help
I think I see the problem
I'll be here, I'll ping you when I've solved it
appreciate it
When you log back in, you'll get a notification
cool
21:38
Oh yeah no caprica here
Here is your regex:
new RegExp("^CP\.(73cd0909-8cd7-4193-96ae-7336c504cd18)\.([a-z0-9]{8}-[a-z0-9]{4}-[a‌​-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12})$")
It will return two portions
1 is your guid not including the "CP." prefix
2 is the second one after the point
22:00
Here is a working function: @Bubbas
I'm not sure if that functions the same way you want but yeah

  last day (15 days later) »