Regular expression matching, very simple:

I want to match Twitter grammar with regular expressions.

How do I match any “@______”, that is, start with the @ symbol and nothing after it Spaces, only letters and numbers, until the end of the word? (For Twitter, I want to match someone’s name in the reply)

do it

/@(\w+)/

The same goes for obtaining matching names.

I want to match Twitter syntax with regular expressions.

How do I match any “@______”, that is, with the @ symbol At the beginning, there is no space after it, only letters and numbers, until the end of the word? (For Twitter, I want to match someone’s name in the reply)

Go do it

/@(\w+)/

The same goes for obtaining matching names.

< /p>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5413 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.