Search found 8 matches

by riku22
Wed Mar 02, 2022 1:19 am
Forum: Coding Questions
Topic: About regular expression
Replies: 1
Views: 355

About regular expression

Hello.

I am currently using this module because I wanted to use backreferences in my regular expressions.
However, there are a few problems with the above module.
Is there any module that you would recommend?
I would appreciate your advice.

Sincerely yours.
by riku22
Tue Feb 15, 2022 4:33 am
Forum: General Discussion
Topic: About encryption with AES
Replies: 5
Views: 1402

Re: About encryption with AES

Hello.

Hmm, I see.
Thank you.
by riku22
Fri Feb 11, 2022 1:20 pm
Forum: General Discussion
Topic: About encryption with AES
Replies: 5
Views: 1402

Re: About encryption with AES

Hello.

Thank you.
I tried a bit of the script mentioned in the link, but it still doesn't seem to decrypt in PHP.
I would like to avoid passing the IV to PHP if possible.
It seems to be quite difficult for me.

Sincerely yours.
by riku22
Thu Feb 10, 2022 6:24 am
Forum: General Discussion
Topic: About encryption with AES
Replies: 5
Views: 1402

About encryption with AES

Hello.

I am trying to do AES encryption.
However, the encrypted string needs to be decrypted in PHP, and I don't know how to encrypt it in PureBasic.
I thought this page might be helpful, but I am not sure how to generate the key and IV.
The decryption in PHP is done as follows.


<?php
$password ...
by riku22
Thu Feb 10, 2022 5:57 am
Forum: General Discussion
Topic: How do I escape a string as a regular expression?
Replies: 6
Views: 1130

Re: How do I escape a string as a regular expression?

Hello.

Thank you very much.
I was able to achieve what I wanted to do.

Sincerely.
by riku22
Wed Feb 09, 2022 12:30 pm
Forum: General Discussion
Topic: How do I escape a string as a regular expression?
Replies: 6
Views: 1130

Re: How do I escape a string as a regular expression?

Hello.

Sorry, that's not what I want to implement.
I want to perform a function similar to Python's re.escape function or PHP's preg_quote function.
by riku22
Wed Feb 09, 2022 4:29 am
Forum: General Discussion
Topic: How do I escape a string as a regular expression?
Replies: 6
Views: 1130

Re: How do I escape a string as a regular expression?

Hello.

I apologize for the vagueness of my question.
I also found "EscapeString", but it can't escape a string used as a regular expression pattern.
For example, if you want to specify the string "\d+" itself as a regular expression pattern, you need to escape it as "\\d\+".
by riku22
Wed Feb 09, 2022 3:36 am
Forum: General Discussion
Topic: How do I escape a string as a regular expression?
Replies: 6
Views: 1130

How do I escape a string as a regular expression?

Hello.

How do I escape a string as a regular expression?
For example, converting "\d+" to "\\d\+".
In languages like Python, there are dedicated functions, how do I do that in PureBasic?
Any suggestions on how to do this would be appreciated.

Sincerely.